gitpull错误和 fetch 错误

错误原因

13:21:46.040: [monkey] git -c core.quotepath=false -c log.showSignature=false fetch origin --progress --prune

java.io.IOException: There was a problem while connecting to github.com:22
at com.trilead.ssh2.Connection.connect(Connection.java:817)
at com.trilead.ssh2.Connection.connect(Connection.java:686)
at com.trilead.ssh2.Connection.connect(Connection.java:600)
at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:173)
at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:137)
Caused by: java.io.IOException: Key exchange was not finished, connection is closed.
at com.trilead.ssh2.transport.KexManager.getOrWaitForConnectionInfo(KexManager.java:92)
at com.trilead.ssh2.transport.TransportManager.getConnectionInfo(TransportManager.java:231)
at com.trilead.ssh2.Connection.connect(Connection.java:769)
... 4 more
Caused by: java.io.IOException: Cannot negotiate, proposals do not match.
at com.trilead.ssh2.transport.KexManager.handleMessage(KexManager.java:413)
at com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:765)
at com.trilead.ssh2.transport.TransportManager$1.run(TransportManager.java:480)
at java.lang.Thread.run(Thread.java:745)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights

and the repository exists.

GitHub上放置了一个 monkey项目 今天好好地就提示出错 

度娘一波 重新生成一波 key 然后 将key重新添加到 github里面 还提示这个错误 

最后

gitpull错误和 fetch 错误_第1张图片

最后点击这个 remotes 远程仓库

gitpull错误和 fetch 错误_第2张图片

删除重新添加一波 即可 

最后正常fetch 和pull

gitpull错误和 fetch 错误_第3张图片

参考一波 文档https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/

你可能感兴趣的:(git)