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