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