Connection reset by peer

在使用git push 的时候突然失败 :
报错信息如下:

Connection reset by 52.74.223.119
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

解决方法:

git gc  

该命令作用是清楚非必要文件 优化本地仓库
问题成功解决

** 参考 **
https://stackoverflow.com/questions/17977206/fatal-read-error-connection-reset-by-peer

你可能感兴趣的:(git)