Git and GitHub Environment Setup (Windows System)

Source: Internet
Author: User

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)

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.