Github: Push an existing repository from the command line
1. Create a GitHub account . 2. Now create a new repository (For Example: WebServicesForAndroid ) 3. Open your terminal and go existing repository. $ cd /Applications/MAMP/htdocs/WebServicesForAndroid 4. Then run the following command one by one. $ git init $ git add . $ git commit -m "first commit" $ git remote add origin https://github.com/xyz/WebServicesForAndroid.git $ git push -u origin master