One, download and install the Git for win client
https://git-for-windows.github.io/
Fool download install, recommend git GUI tool: Sourcetree.
Ii. generation of Ssh-key
After installing Git on Windows, right-click on the desktop and there is a git bash here option in the right-click menu to go to the GIT bash console.
Enter Ssh-keygen-t rsa-c "[email protected]", enter your e-mail address, and then go all the way to enter.
At this point in your user directory there will be a. SSH folder, and the folder will have Id_rsa, id_rsa.pub two files, this is the ssh-key you just generated.
At this point, you just need to import the contents of id_rsa.pub into your github or tell your GIT server administrator to help you add permissions.
Third, set up password-free login
In the process of generating ssh-key above, one step is to set the password, all the way to enter means not to set the password, if you set the password, every time you connect to the remote git repository
The time is to enter the password, although safe, but very troublesome, by the following actions can be set password-free login:
Open git bash, enter exec ssh-agent bash, enter eval ssh-agent-s, and then CD into your. SSH directory, enter Ssh-add Id_rsa.
Of course, you can also remove password-free login:
Open git bash and enter ssh-add-d directly.
Installation of a GIT client under Windows and its Ssh-key generation