0条评论
还没有人评论过~
1.git init
2.git add
3.git commit
4.git remote add origin
5.git push origin master ,这里出错啦!!!
6.ssh-keygen -f, 因为默认路径呗其他repos占用, 所以使用-f指定路径
7.github中添加id_rsa.pub
8.重新git push, 依然出错
各位师兄,有遇到过这个问题的吗?
要将秘钥添加到高速缓存区
看博客跟着操作就好了 https://www.cnblogs.com/pythonywy/p/11525845.html
可以参参考这个步骤操作:https://www.cnblogs.com/zjfjava/p/10080569.html
这个git教程讲得很详细——Git应用详解
vim ~/.ssh/config
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/github/wiki/id_rsa
ssh git@github.com