首先下载安装git:Git - Downloads
一路默认,安装完成后,打开文件夹C:\Users\Administrator\.ssh(Administrator是当前用户名),在空白处点鼠标右键选择“Git Bush Here” ,打开gitbush。
配置用户名和邮箱:
$ git config --global user.name "your_name"
$ git config --global user.email "[email protected]"
生成密钥对:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
此时文件夹中会生成两个密钥文件:
打开id_rsa.pub,将文件内容全选复制,准备粘