如何解决“接收失败:连接被对等方重置”错误

Sam*_*ÇAK 6 git git-pull git-fetch fatal-error

我正在尝试$ git pull$ git fetch命令myRepo给我错误但myTestRepo工作正常。

命令给了我这个错误。

Fetching origin
fatal: unable to access 'http://mysite/myPath/myRepo.git/': Recv failure: Connection reset by peer
error: Could not fetch origin
Run Code Online (Sandbox Code Playgroud)

我尝试了 git$ git fetch -p$ git fetch -p --all -f命令,他们工作了一两次之后,命令给出了相同的错误。

Sam*_*ÇAK 5

我正在使用http连接,我将连接更改为ssh而不是http,问题解决了