我在myRepo
上尝试使用$ git pull
或$ git fetch
命令时出现错误,但myTestRepo
工作正常。
命令会给我这个错误。
Fetching origin
fatal: unable to access 'http://mysite/myPath/myRepo.git/': Recv failure: Connection reset by peer
error: Could not fetch origin
我尝试了git $ git fetch -p
和$ git fetch -p --all -f
命令,它们工作了一到两次之后,命令给出了相同的错误。
发布于 2019-10-18 20:20:09
我使用的是http
连接,我将我的连接改为ssh
,问题就解决了
发布于 2020-01-23 09:54:41
我也遇到过类似的问题,但还是解决了。实际上,除了github的https
之外,没有其他的http
。尝试将http
替换为https
。
发布于 2021-03-09 19:28:01
当你使用http url时,如果80被阻止,可能会发生这种情况。
https://stackoverflow.com/questions/58372156
复制相似问题