First, GitHub account registration
1. Open the URL https://github.com registered account:
Second, install git locally
1. Installation package: Link: https://pan.baidu.com/s/1smpnJL7 Password: DYLC
All the way next, the installation is complete.
After the installation is successful, find the GIT bash option from the Start menu, open it, and see the Command-line window
2. Establish a connection
While maintaining communication between local git and GitHub servers, we use SSH key authentication to secure communications, so you must build your own SSH key before using GitHub
With the CD command, find the GIT installation directory, open the SSH directory (currently not sure is the GIT installation directory of the SSH file, or the C disk under the SSH file?). However, depending on the current operating procedure, it can be configured successfully.)
Enter the command in the SSH directory:
$ ssh-keygen-t rsa-c "[email protected]"
After executing the command will be interrupted 3 times, directly hit enter, the command after the successful execution, you can look at the key file in the directory , note. SSH directory can not be deleted
Open the Id_rsa.pub file with a text editor, copy the key, and open the GitHub website, Click the top right corner profile picture →settings→gpg keys→new SSH keys
Paste the key into the key text box, title can be a random name, click the Add SSH Key button, add the encryption key
3. Test the connection
Test whether the connection to GitHub is successful, enter the command: ssh-t [email protected], ask whether to continue the connection is enter Yes
The connection was successful.
So the git and GitHub environment is built.
Git and GitHub Environment Setup (Windows System)