Installing and using Git in eclipse

Source: Internet
Author: User
Tags using git

First, check if Git is installed in eclipse

Open Help->about Eclipse from the menu bar

Then click Installation Details to search for git in the search box above

If the following does not search for the corresponding plug-in is not installed git need to reinstall, has been installed here will not have to install again.

Second, install Git for eclipse

The installation process is the same as the process of installing other plug-ins, opening help->install new software

In the box that pops up, enter git:http://download.eclipse.org/egit/updates/

Click OK to tick the box as shown

Then wait for git to download, follow the prompts and click Next to complete the installation.

Third, configure Git

Configure the user name and mailbox that Git uses, and then click Window->preferences->team->git->configuration

Click Add Entry in the popup screen

Configure the user name, then key fills in the user.name,value fills in the Fuxiao

Configure the user mailbox, key fill in User.email, value fill in your mailbox (if you want to upload the code to GitHub, then the mailbox here must be the mailbox registered on GitHub)

Iv. uploading code to the local repository

Create a new project in Eclipse, or use an existing project, then right-click on the project name and select Team->share project from the right-click menu

Then tick the item you want to upload, click Create Repository to complete the creation of the warehouse, click Finish to change to the following screen

On the left, select the file you want to add, fill in the description of this submission in the commit message, click Commit to complete the submission

V. Uploading code to GitHub

In the above steps we have submitted the code to the local repository and we have uploaded the code to GitHub.

First, create a warehouse in GitHub ahead of time and copy the Git address of the repository, like this: Https://github.com/xxx.git


Follow the prompts to enter information about the warehouse



Then, right-click on the project name and select Team->push

Fill in the user name and password separately, follow the prompts to click Next, then go to the following window

Source ref and Destination ref both select Master, click on the Add Spec, click Finish and wait for upload


Once the operation is complete, our code is uploaded to GitHub.

Vi. Other operations of Git

The above article describes a few of our common git operations, git some other operations and the above operation ideas are the same, all in the Team menu, we can know the corresponding action according to the name, other functions according to the needs of the people to explore their own!

Installing and using Git in eclipse

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.