There are usually git plugins in eclipse, and it's OK to install one without them. I'm using the Eclipse Neon3 version, which has a git plugin. Here are the steps to use.
1. Open Eclipse, select project right click Mouse
Click on the figure on 1 steps and then the 2 steps will appear for this project. Click the 2 location, and then click 3 location. then click Finish.
Select Item again
Submit code to local library
1 Location Show all the items in the project, will need to submit the drag to 2 in the line, fill in a commit message (fill in some information, such as the author on the line), and then click 3 (Commit and push)
Fill in the path to GitHub or Oschina managed projects. Then fill in the user name and password, always next on the line. Until the window has not been played.
Select the item again, right-click the mouse, and then click Action.
Click on OK.
Managed code in Oschina or GitHub. Create a new library
Using Git in eclipse