and setting the basic operation git


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


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


$ git config --global core.autocrlf false


$ git config --global core.quotepath off


$ git config --global core.ignorecase false


$ ssh-keygen -t rsa -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa):
Created directory '/c/Users/Administrator/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa.
Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:v+uRJrqxbPIfyXF3AoiQnml20rKbBfNiSsSdyRheMyI [email protected]
The key's randomart image is:
+---[RSA 2048]----+
|    ..           |
|E o =. . .       |
| + O O. . .      |
|  = / o    .     |
| . o O S. o. |
| . + O. = Oo |
| . o =. = = |
| . + .. + + o |
| + * o .. +. |
+ ---- [SHA256] ----- +


$ Ssh-add ~ / .ssh / id_rsa ( first performance information will be reported as follows)
Could not Open A Connection to your authentication Agent.


$ eval `ssh-agent`
Agent pid 3428


$ ssh-add ~/.ssh/id_rsa(正常)
Identity added: /c/Users/Administrator/.ssh/id_rsa (/c/Users/Administrator/.ssh/id_rsa)


$ Cat ~ / .ssh / id_rsa.pub
ssh RSA AAAAB3NzaC1yc2EAAAADAQABAAABAQCvxLyuTGvVOg 5D56D23j7C + / + Wkbi1wfPk9hHR2WH hPGu2AXuZ / qGyskXfk7EvLgc / gBYu + RiyStUxZlBSl6kqJQ0KcpdgsTO0Ua67WVVnZKp2ItZqOEzUFvGqeOHL5kAMTAYtRbLujTUmIWYGTPp / 33emUPrLTr5wcuGYJ8MFNUbj / rZtwA58jaHFK1 HefYtfSnWdnZucCKsGU4BFxhzlBb7mAKJgI0F8hmbaG94DQ7q62Cdtb7f5vDaLeswiYfFNLs + / + 6SR28akvf0DDPy Fg3TYPjbgxxPd53ueedGx8GvNFlRWb76JJISoRTpZePfmUn2cquhYpDdn0SjjVdvj [email protected]

Guess you like

Origin www.cnblogs.com/wstmljf/p/11504250.html