天天看点

Git clone 初始设置

1、删除.ssh文件夹

2、在Git的bin目录下打开bash.exe,输入命令ssh-keygen -t rsa -C "username"

3、复制C:\Users\WASHINSOFT.ssh\id_rsa.pub的全部内容

4、 打开https://github.com/,登陆账户,进入设置(Settings)找到SSH and GPG keys,点击New SSH Key,在key中粘贴id_rsa.pub的全部内容。

5、在bash.exe中输入ssh -T [email protected]