1、本地成功安装了git后,单击鼠标右键,选择Git Bush here,打开git bush。
2、 键入命令:ssh-keygen -t rsa -C "email@email.com",引号中是你在github/gitee上的注册邮箱,之后设定你的ssh密码,如图:
连续按 三次enter键。
Administrator@SC-201805190058 MINGW64 /d/phpstudy_pro/WWW/github20191209 (master)
$ ssh-keygen -t rsa -C "*******@qq.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa):
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:sYdBnHEU/HhBkbRX87eXg4jffxCy