Turn http://blog.csdn.net/wisgood/article/details/12949131
1. Integration plug-in
Enter into plugin integration function, write git-http://download.eclipse.org/egit/updates in input box
Click the Add button and the following dialog box appears
Click the OK button and the following dialog box appears
Select only two options for Egit, then click Next to wait
Then go to the following page and click Next
The following interface select Accept, click Finish
Start installation
You will then be prompted to restart Eclipse, and the integration can be completed by rebooting
If the installation has not been successful for a long time, click Cancel to repeat the above steps.
2 Using Plugins
A Create a user
Window->preference
Select Team->configurantion
Click the Add Entry button
Add user Name
Click the Add Entry button again to add an email
Upon completion as
Click OK to save.
B Local Use
Build your own project (any project can be, I use the CDT plugin, build C project)
Project Right-click to select Team->share Project
Choose Git
Click Next to enter the following page
Select the check box user or create ....
Click on the button below the project name to unlock it
Click the Create Repository button
Click Finish to complete the configuration, after the project display and initial changes (question mark)
Submit a project for the first time (create head)
Click Project Right Team->commit
Enter the following interface
Click Commit to complete the submission
If you add a file, the steps are basically consistent with the above method
Modify the Zzjzmdx.c file
The file ID displays a single arrow that is different from the original version
You can right-click on this file to submit
View history
Select File Right button
The following list module appears
Click the button in the upper right corner of the module
Double-click any version of history to display a comparison with the current version
Hold down CTRL and select any two historical versions right-click Compre with every other
There are two historical versions of the contrast display
If you want a historical version, right-click Chaek out to overwrite the current version with the historical version
Create a branch
Initially there was only one master branch
Right-click Project Team->swhich->new nranch
Go to the following page
Select the Head option and enter a new branch name
Click Finish to complete the creation of the project automatically switch to the ZZJZMDX branch
If you want to switch branches right-click Team->swhich->master
Switch to the master branch
Creating or modifying a file under a branch has no effect on other branches.
You can also merge branches
Select the branch you want to merge with this branch
Commit appears two branches containing the same file prompt window
Select Keep one of the OK to complete the merge
Basic operating instructions are complete.
Eclipse git plugin integration and local use