First, install the plug-in
Menu bar Help--Install New software...-->> Enter http://download.eclipse.org/egit/updates-->> in work with Tick Eclipse Git Team provider and jgit-->> Click Next, go to install, restart Eclipse
Second, configure Git
menu bar Windows--Preferences, Team---Git Configuration, click Add Entry ..., add name and email
After logging in to GitHub, click the New Repository button in the lower right corner to add the project code warehouse-->> Enter repository name (suggested with the name of the project to be submitted)
Third, associated git
Note: 1, the first step if the error, cannot read file/.gitconfig, directly find the file delete can
2. If you have previously installed and used git to submit a project to GitHub, the first step is to directly load the previously generated SSH key
1. Give the public key in Eclipse and add it to GitHub repository.
In the menu bar, open window→preference→general→network connection→ssh2→key management→generate RSA Key ... →apply→save private Key ...
2, associated with Git. Select the item you want to publish, right-click, Team---Share project, choose Git, click Next. Tick the use or create repository in parent folder of project, select the project you want to publish, click Create Repository, and click Finish.
3, publish the project. Select the item you want to publish, right-click, Team---commit, fill in the Commit message, tick Select all, click Commit. Note: At this point, only commit to local git and push is required to submit to GitHub.
4. Post to GitHub. Select the item you want to publish, right-click, Team---Remote, Push, paste Uri, fill in user and password, click Next, click the drop-down box for source ref, select Mast, click Add Spec, Click Finish and click OK to finish.
Eclipse configuration git release project to GitHub