1. After you have completed your Git account, set up a good code base
2.eclipse successfully installed the EGit plugin (Eclipse version matches the EGit plugin list http://wiki.eclipse.org/EGit/FAQ#Retention_Policy )
3. Create a common Java project 4. Set the project git management, Team-->share project-->git-->create Repository
Choose git here .
after clicking finish the project will become this way, which means that the project has been successfully identified as a GIT management project, then committed to the local repository, and then submitted to the remote warehouse (if not submitted to the local warehouse, unable to submit to the remote warehouse, if you want to ask why so sick, this is the game rules!!) ) 5. Add the project to the local warehouse Team-->commit 5.1 Submit
5.2 Fill in the Notes
5.3 After submission (it has been successfully submitted to the local warehouse)
6. Submit to the remote repository (Team-->remote-->push)
If force update is checked, the overwrite commit
If there is a red conflict prompt on commit, you must update it before committing
currently directly ignored, forced commit (return to previous step tick force update)
then submit directly, in the remote warehouse to refresh the page will see the project you just submitted
Eclipse submits local code to the remote repository using the Egit plugin