Git installation configuration under Windows

Source: Internet
Author: User
Tags ssh access

1. Installation

Tortoisesgit is the most useful git GUI software under Windows, you need to download and install git before installing. The installation process is similar to the normal program.

2.SSH Access

SSH provides reliable data access. For example, setting up SSH keys in GitHub saves you the hassle of downloading and entering usernames and passwords every time you upload.

Tortoisesgit supports SSH access in the following ways:

(1) Use OpenSSH to set the public and private keys.

After installing git, open git bash.

$ CD ~/.ssh

$ git config--global user.name "xxx"

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

$ ssh-keygen-t rsa-c "[email protected]"

After 3 returns, generate 2 files (Id_rsa and id_rsa.pub).

(2) GitHub add public key

Open the Id_rsa.pub file and copy the contents to GitHub's Ssh_key.

(3) test

ssh-t [email protected]

(4) Tortoisesgit settings use OpenSSH

In the network, setting-Tortoisesgit, use OpenSSH.

This allows us to use Git bash and tortoisesgit to access the GIT server at the same time.

(5) GitHub download code

Download the code from github using SSH, and pay attention to choosing SSH, otherwise the default is HTTPS mode (requires user name authentication).

Git installation configuration under 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.