最近在git push 的时候发现一个问题。
read from socket failed connection reset by peer fatal could not read from remote repository。
我们先试一试是不是连同的:ssh -T git@github.com
发现是正常的。Google了一下,发现一个好的解决办法:
在命令行执行:
git config remote.origin.url git@github.com:your_username/your_project.git
然后在git push就可以了。