To configure git in eclipse:
One, because I am using the new version of Eclipse Java EE 4.4 Default integration git, so do not manually install the Git plugin
Second, eclipse configures the underlying information. Windows->preferences->team->git such as:
preferences->team->git->configuration
Click Add Entry to enter the value of key and value in the popup box.
Key, name fill in: User.name,value is your name.
E-mail: User.email value: Your email account. When you submit your code, it automatically extracts the information and sends it to the GIT remote repository along with the code.
Third, configure the local git repository in Eclispe
Create a new project in Eclipse, then right-click the project name, select Team->share project->git tap the Next button, on the Configure Git Repository page, click Create
Select Local folder as Git local repository
Four, commit the code to local git Repository
Select the project name and right-click Team->commit
Fill in the appropriate information and click Commit.
Five, configure Git Remote Repository in Eclispe
Bring up the Git repository window
Right-click Remotes, select Create remote
Enter remote name Click OK button,
In the URI bar, click the Change button to fill in the corresponding Git sever information
Save.
Six, push local git repository code to remote repository
Right-click Project, Team->remote->push Branch
Fill in the appropriate information so that the project of the Ontology warehouse is pushed to the remote repository.
Git (i): Configuring Git in Eclipse