Two ways to push code to GitHub

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.