1. Follow the instructions on GitHub to configure the (http://help.github.com/win-set-up-git/) based git environment.
2. Create a repository on GitHub.
3. Install Egit in the market places through eclipse marketplaces in eclipse.
4. Give the public key in Eclipse and add it to GitHub repository.
In Eclipse through: performance, SSH2, key Management, gernerate RSA key generates the public Key for SSH.
In GitHub, via: Edit your profile, SSH key, add ssh key, adding SSH key, copy the public key generated above to here, save.
The File menu in 5.Eclipse, import, you can import a project just added to Git from git.
6. Modify, and submit. Right-click on the item –>team–>commit. Commit is the GIT repository that commits to the native, and push is synced to GitHub.
Using the Egit plugin in eclipse
Both the local and remote code warehouses are created and configured, and the next step is to use the Egit plugin in eclipse.
If you are not an administrator, you only need to clone or import the GitHub server Remote code repository to local. In the Eclipse right-click menu, import select Git->projects from Git.
Select the URI, which means importing a project from the remote server code warehouse.
Enter [email protected]:tonyguan/hello-android.git] in the URI.
Click Next to have the password verification process.
Enter the password then it is very simple, and then make some choices to import the project.
If you modify the code, the file will be in an uncommitted state.
The file is submitted by selecting the Team->commit Popup Submission dialog box in the right-click menu of the project. In the commit message, enter the comment information for the submission.
Click the Commit button and the file will be submitted.
A successful commit simply means that the changes to the file are saved to the local code repository and not to the remote code repository. Open Eclipse's Perspective window and choose Git Repository exploring.
Then choose Hello-android's Remotes->origin->[email protected]:tonyguan/hello-android.git.
Right-click on the menu push to start pushing local code to the server.
Setting up the GitHub development environment under eclipse