Git installation and basic settings (Windows)

Source: Internet
Author: User

1.Git

https://git-for-windows.github.io/

2. Install after download is complete

Self-Baidu

3. Configure the SSH key for GitHub:

1) Open Git bash to see if an SSH key already exists on your computer;

Input CD ~/.ssh

    

To create a new SSH key if the file cannot be found;

2) Create a new SSH key:

Enter Ssh-keygen-t rsa-c "[Email protected]"

Execute this command to prompt the file to save the path, you can press ENTER directly,

Then prompt input passphrase (password), enter two times (can not lose directly two times enter)

    

Production of two files in. ssh directory: Id_rsa and Id_rsa.pub

Use Notepad to open the. SSH directory under the id_rsa.pub file, copy the contents;

4. Copy ssh key to GitHub:

5. Test SSH link GitHub:

Input ssh-t [email protected]

    

appear successfully, complete.

6. Configure Local Information:

git config--global user.name "Firstname Lastname"

git config--global user.email "[Email protected]"

You can enter git config--list to view your git information.

Git installation and basic settings (Windows)

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.