Original address: http://blog.csdn.net/twlkyao/article/details/26340685
1. Install git
Install git first. This is just about installing the Git method in Windows.
Download the git Windows installation file from Git, and go to the next step to select the installation component:
Choose Git Bash here, so there's a command line available. Because Git's own GUI is basically not used in the back.
Article Source: http://blog.csdn.net/twlkyao/article/details/26340685
2. Create a new project on GitHub
Open GitHub, click the "+" sign in the top right corner, then select new code Base,
Then give the code base a good name, write a simple description of the code base, initialize the repository Readme file, select the appropriate open source protocol.
Creating a good code base
The most important is the URL that starts with HTTPS . Note This is the HTTPS protocol. So the online teaching you with SSH or something is weak, and now can not be used at all. No need to install SSH.
3. Installing Egit in Eclipse
Open Eclipse, click help Select Install New software ..., write the name and location, link address: http://download.eclipse.org/egit/updates, Simply select Install Eclipse Git Team provider and restart Eclipse after installation.
Configure Git in 4.Eclipse click Window-->preferences-->team-->git-->configuration, click Enter Entry in the User Settings column, Add User.Name ******************* and User.email ************* as follows: 5. Project Management with Git
Create a new project first, then right-click on the Project Team-->share project ... and choose Git. The following panel appears
Tick the use or the Create repository in parent folder of Project representative will be the project root directory when Git's local repository . The following panel appears:
Click Create Repository, then click Finish, so the local warehouse has been built.
After changing the code, right-click on the Team-->commit to commit the updated code to the local repository , next to how to upload the code to GitHub.
6. Configure the public key for key management in eclipse by selecting Window-->preferences-->general-->networking connections-->ssh2. If you already have a key that you can import in the Key Management tab bar, you will need to generate an RSA key pair to identify it when you establish communication with the remote. 7. Submit the code to the remote repository
Select Team-->remote-->push, where the URI is the URI (which I say is very important) that the GitHub prompt was created after the start. Note that the protocol is HTTPS, configure the user name and password, and select storage to prevent each subsequent commit from entering a user name and password.
Click Next, select Add all Branches Spec, then click Next.
The following page appears, then select Finish to be good.
You will then see the following page:
After the code is modified, ">" appears on the file that has code churn in the project.
You can submit the code locally before committing it to the remote code base.
After committing to the remote code base, you can see the remote code base as follows:
Resources:
Click to open link
Click to open link
Click to open link
(go) Eclipse config GitHub code base (take Windows7 as an example)