Install git plugin egit on Eclipse and use

Source: Internet
Author: User

Install git plugin egit on Eclipse and use Blog Category:
    • Git

First, install the Git plugin on Eclipse egit

Version eclipse-java-helios-sr2-win32.zip of Eclipse (the corresponding Egit plugin could not be found in the Eclipse3.3 version, cannot be installed)

Egit Plugin Address: http://download.eclipse.org/egit/updates

OK, then the next successive default installation will be ready, after installation to restart Eclipse

Ii. Configuring Egit in Eclipse

Preparatory work: Need to register an account on https://github.com

Preferences > Team > Git > Configuration

The user.name here is your registered user name on the https://github.com.

User.email is your mailbox on GitHub. Configure the User.Name here

III. Create a new project and commit the code to a local git repository

1, new project Git_demo, and new Helloworld.java class

2. Submit the Git_demo project to the local warehouse, as

In this step, the Git repository is created successfully. But the folder is in the untracked state (the symbol "?" in the folder.) ), we need to submit the code to the local repository, as

OK, so the code is submitted to the local repository

IV: Commit The local code to a remote git repository

Getting ready: Create a warehouse on https://github.com

Click "Create Repository", OK, so the repository on GitHub is created.

Note After creating the remote repository, click to go in, you can see an HTTP address, such as the red box, this is the remote Warehouse address of your HTTP protocol

The preparation is done, so start submitting the code to the remote repository.

OK, so commit the remote git is done, you can check the https://github.com in the code has been submitted

The problem of attention

If this is the first time to commit, start by building the same warehouse locally, called the Local warehouse.

The second step: Commit locally commits the update to the local repository;

The third step: Pull the server-side updates to the local warehouse for consolidation, and finally push the consolidated local repository to the server side, so that a remote commit is made.

If the same goes for a non-first-time submission

The first step: Update the modified code commit operation to the local repository;

Step two: The third step: Pull the server-side updates to the local repository for consolidation, and finally push the consolidated local warehouse to the server side

Install git plugin egit on Eclipse and 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.