Eclipse git plugin integration and local use

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.