Usually work in the study will inevitably in GitHub search for the open source of Android code, Android system itself code is hosted on GitHub, if usually handy to do a demo, hosted in the cloud disk feel not into the stream, if peacetime own a temporary rise to write a small demo, To share with you, GitHub is naturally the first choice for our code hosting. The bundled eclipse itself, which Google itself withdrew, has already packaged git in it, and has reduced one step for our Android code submission, and here's a concrete look at how to host the code to GitHub:
1. First confirm that if the eclipse version is not a version downloaded from Google, you will need to go to http://download.eclipse.org/egit/updates/to download the software:
Eclipse→help→install New Software
2. I am using a bundle version of myself, if the non-binding is similar to my next step, then go to Window→preferences to operate:
3. Click on the Generate RSA key to generate the key, which will be saved directly on GitHub:
5. Add an SSH Key directly above GitHub, and the value is the value in that big red box:
6. Right-click on a new Android project, Team→share project:
7. Then use the project code with the GIT repository:
8. Right-click on the project Team→commit:
8. Right-click Team→remote->push,uri is the address of GitHub's own warehouse:
9. Select the main branch, the bottom of which is the finish submission:
10. Final Result:
Eclipse uploads code to GitHub