【问题标题】:How can I resolve "Recv failure: Connection reset by peer" error如何解决“接收失败:对等方重置连接”错误
【发布时间】:2020-02-10 19:20:03
【问题描述】:

我正在尝试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 命令,他们工作了一两次之后,命令给出了同样的错误。

【问题讨论】:

  • 您是否能够以其他方式访问 git repo ?也许在浏览器中?
  • 是的,我可以使用浏览器访问我的仓库,我可以将我的更改推送到仓库

标签: git fatal-error git-pull git-fetch


【解决方案1】:

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

【讨论】:

    【解决方案2】:

    我遇到了类似的问题,但解决了。实际上,github 没有http,而是https。尝试将http 替换为https

    【讨论】:

      【解决方案3】:

      在使用http url时如果80被屏蔽了就可能发生这种情况。

      【讨论】:

        【解决方案4】:

        我遇到了这个问题

        git clone xyz.git
        

        我通过添加 sudo commando 来解决它

        sudo git clone xyz.git
        

        【讨论】:

          猜你喜欢
          • 2018-02-19
          • 1970-01-01
          • 2017-02-22
          • 1970-01-01
          • 2013-08-25
          • 1970-01-01
          • 2012-10-10
          • 1970-01-01
          • 2017-03-01
          相关资源
          最近更新 更多