To add a localGiton the code submitted toGitHubcan be submitted using two Protocols,used separatelyHTTPSand theSSHTwo types of protocols, as shown below.
when using HTTPS protocol, input is required for each push GitHub the user name password for the platform.
when using SSH protocol, you need to configure a local SSH private key file, and register to GitHub platform, so that you do not have to use the user name password each time you commit.
the specific configuration can be used this way, the project URL can use HTTPS protocol, but push URL Use SSH protocol and develop a local key file.
The following describes how to generate a related key.
Open PuTTYGen this program.
Click Generate button, shake the mouse in the interface to generate the key
After the build is complete as shown below
replication is generated at the KEY , and then in GitHub Added on SSH KEY
and then tap Save Private Key button to save the private key file to the local disk
Two ways to push code to GitHub