#安装git并配置环境变量 #给Github添加SSH keygit
- ssh-keygen -t rsa -C "mail@mail.com" 若是遇到:C:\Users\XXXX> Saving the key failed: //.ssh/id_rsa. 解决方式是添加HOME环境变量:C:\Users\XXXX
- 打开id_rsa.pub 将里面的内容拷贝到github setting 中的 SSH and GPG keys New SSH key
- 验证 ssh -T git@github.com yes 若是出现Hi xxx 就OK了 4.设置用户信息 git config --global user.name "name" git config --global user.email "mail" 5.出现Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts. 在hosts中添加192.30.252.131 github.com