1. Install git
:http://git-scm.com/download, install git and set environment variables, C:\Program Files (x86) \git\bin into system variables.
2. Set initialization parameters
Enter the following command at the command line:git config--global user.name = "Your user name"git config--global user.email = "Email Address"3. Get SSHPublic Keyopen git bash git, enter the command ssh-keygen-t rsa-c "email address", all the way to enter, then in the directory will generate. SSH directory, my directory is: C:\Users\Arvin\.ssh4. Add a public key on GitHub
click Add.
5, test whether successfully entered in git bash command ssh-t [email protected] After you see the following information, indicating success!
6. Create a project on GitHub
Click Create to create a project on GitHub. 7. Use Eclipse to sync your local project to GitHub
- To go to the local project and right click on git Init here, a. Git directory is generated, which is a hidden directory and needs to be set to display the hidden directory.
- Open Eclipse, select project Right →team→share project, choose Git, as follows:
At this point our project will be displayed in this way:
It's not over yet, keep going down.
The items at this point are shown below:
Next commit to GitHub.
Refresh the GitHub project as follows:
Eclipse uses git