Connection of Git to GitHub server in Windows environment

Source: Internet
Author: User

1. Open git bash

Enter the following command and press ENTER

" GitHub User Name "
" GitHub Mailbox "
Ssh-keygen " GitHub Mailbox "   // Generate SSH Key

Always press ENTER to know the following key ' s Randomart image appears

2. Open the id_rsa.pub in the corresponding directory with Notepad, full-text copy

Viewing the directory will generate two issues, ID_RSA is the private key, and Id_rsa.pub is the public key. Remember never to disclose the private key file Id_rsa to anyone.

3. Open GitHub, click the Settings/ssh and GPG keys in the Avatar

Click New SSH keys

Title: Casual

Key: Paste the content you just copied from id_rsa.pub

4. Test if Git is connected successfully to GitHub

Connection of Git to GitHub server in Windows environment

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.