git拉错误client_loop:发送断开连接:peerib/s的连接重置

发布于 2025-02-05 08:04:50 字数 359 浏览 2 评论 0原文

我有两个Bitbucket帐户,一个是个人的,另一个是为了工作。我对它们都使用SSH,并且每个SSH都有不同的SSH键。我正在尝试将一个Bitbucket帐户的更改提高到我的本地分支,但我一直遇到此错误,

$ git pull origin master
client_loop: send disconnect: Connection reset by peeriB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

如何解决此问题

I have two bitbucket accounts, one personal and the other is for work. I use ssh for both of them and I have different ssh keys for each. I am trying to pull changes from one bitbucket account onto my local branch but I keep getting this error

$ git pull origin master
client_loop: send disconnect: Connection reset by peeriB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

How can I solve this issue

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

上课铃就是安魂曲 2025-02-12 08:04:50

首先,看起来的行:

  client_loop:发送disconnect:peerib/s的连接重置
 

并不是真的这么说。它说的是:(

Receiving objects:  XX% (X/Y), X KiB | XXXX KiB/s

x和y部分中的一些数字值,也许是MIB/s或其他单位到末端),然后由以下内容覆盖:

client_loop: send disconnect: Connection reset by peer

“连接由peer重置” “错误表明同行 - 您要从中获取的git托管系统是git lupl运行的两个命令中的第一个 - 决定不再希望与您的计算机交谈并且有突然关闭连接。

如果您使用的是HTTPS,这通常是由于某些不良的插入硬件和/或软件破坏了要传输的数据而发生的。例如,一些旨在保护您免受垃圾邮件,色情材料等的过滤器,只是不起作用,而是这样做。 (某些部分工作,并在工作中进行此操作。)因此,如果您使用的是https或某种网络安全过滤器,请考虑使用SSH和/或关闭过滤软件或硬件。 (请记住,Filter May 正在做一些有用的以及Breaking Git。)您提到了SSH键,因此您可能已经使用了SSH;在这种情况下,损坏的硬件和/或软件的可能性较小,但仍然是可能的

如果不是这种情况,您可能只有一个足够的片状网络连接在进行长期转移时会破坏。在这种情况下,您只需要改善网络连接即可,或避免在其上进行长时间的数据传输。

First, the line that seems to read:

client_loop: send disconnect: Connection reset by peeriB/s

doesn't really say that. What it says is:

Receiving objects:  XX% (X/Y), X KiB | XXXX KiB/s

(with some numeric values in the X and Y sections, and maybe MiB/s or some other unit towards the end), which is then overwritten by:

client_loop: send disconnect: Connection reset by peer

The "Connection reset by peer" error indicates that the peer—the Git hosting system from which you're fetching as the first of the two commands that git pull runs—has decided that it no longer wishes to talk to your computer and has abruptly shut down the connection.

If you're using https, this often happens because of some bad interposition hardware and/or software that wrecks the data being transferred. For instance, some filters that purport to protect you from spam, pornographic material, etc., simply don't work and do this instead. (Some partly work and do this in addition to working.) So if you are using https, or some sort of network security filter, consider using ssh and/or turning off the filtering software or hardware. (Remember though that the filter may be doing something useful along with breaking Git.) You mention ssh keys so you may already be using ssh; in this case broken hardware and/or software is less likely but is still possible.

If that's not the case, you might just have a sufficiently flaky network connection that it's breaking when doing long transfers. In this case you'll just need to improve your network connection, or avoid doing long data transfers across it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文