Git主页提示You won t be able to pull or push project code via SSH until you add an SSH key to you

You won't be able to pull or push project code via SSH until you add an SSH key to your profile (在您的配置文件中添加一个ssh密钥之前,您将无法通过ssh来拖动或推动项目代码)

git需要配置key(公钥密钥)才能push代码。

解决:

cr. https://blog.csdn.net/gufenchen/article/details/95663284

输入

 $ ssh-keygen -t rsa -C"sec***@163.com" 

时又出另一个错:

“Bad escape character ‘ygen’.

原因是命令输错了,多一个空格,解决:https://www.cnblogs.com/secsafe/p/10515803.html

 

你可能感兴趣的:(调错记录)