测试连接是否成功。老出现上面要求输入密码。
git clone 项目也要求输入密码,但是我密码输入完之后不成功,提示同样的信息。
有可能问题是:配好了ssh,但仓库的git remote依旧是使用http来连接的。
解决方法:
//查看仓库所使用的连接形式
git remote -v
//修改仓库的连接方式为ssh
git remote set-url origin git开头的仓库地址
先看看你密钥配置好了没,如果好了的话 在github库中 use ssh 记住自己的私钥密码 三步走推送就好 实在不行兄弟建议你下载个 sourcetree吧 图形化界面工具,非常好用
5 回答2.8k 阅读
3 回答2.6k 阅读
3 回答960 阅读
1.2k 阅读
SSH keys are a way to identify trusted computers, without involving passwords. The steps below will walk you through generating an SSH key and then adding the public key to your account.
https://help.github.com/articles/generating-ssh-keys/