1.没有配置公开密钥到github
这个配置好密钥就行了。
执行命令
这个会给整个电脑添加
ssh-keygen -o
或者给具体邮箱添加
ssh-keygen -t rsa -C "这里换上你的邮箱"
通过git config --globle --list 查看git信息
可以指定目录也可以选择默认。默认是 user/.ssh/id_rsa.
默认会生产两个文件id_rsa和id_rsa.pub
我们需要把id_rsa.pub放到github上。
Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\Administrator/.ssh/id_rsa): g:\rsa
Enter passphrase (empty for no passphrase):
Enter sa

本文介绍了如何配置SSH密钥到GitHub,避免意外勾选Push to repository,处理git命令错误,并提供了解决新老项目同步问题的方法。

93

被折叠的 条评论
为什么被折叠?



