Using Git on eclipse

Source: Internet
Author: User
Tags using git

Eclipse usually comes with egit plug-ins, if not brought to download,

Installation: "Help", "Install new software" \ Add the following link: http://download.eclipse.org/egit/updates/

configuration: After the installation is complete, we give git a simple configuration to use

Fill in our username and email

Prefrences–> Preferences--team–>git–> Configuration

Remote repository: you need to set up a GitHub account; see: http://www.cnblogs.com/BoBoMEe/p/4296385.html

Establish an SSH link, prefrences--and search ssh–>browser–> Select our generated. SSH, generally in C:\Users\Administrator\.ssh

1. Create a GitHub repository

2. Eclipse New Engineering Catalog –> team–> Share project–> git–> Next

3. Submission; Local submission, and then remote submission; Project Right –> team–> commit. Write the log and you can submit it.

Note to the right of the √ is to select the file to be submitted , below There are two buttons, Commitandpush; Click to do related actions

You will then see a tag on the project code, where the local commit succeeds.

Remote commit: Push

Before submitting, we need to pull the code on GitHub, and after the merge \ Resubmit

There may be a phenomenon that does not link to GitHub, and my solution is git bash

// Associate, replace user name and mailbox $ git Remote add origin [email protected]:username/hello.git

The effect is to add the following code under. Git/config

[Core]     0   falseTrue "Origin    "       ]//  Here you need to replace the user name and the warehouse name    url = [email protected]:username/hello.git    = + Refs/heads/*: refs/remotes/origin/*

Submit: project –> remote-> push–> Enter the URL address above, along with your user name and password

We can take a look at GitHub on the effect;;;;;;;

Using Git on 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.