如何修复Git中的'packet_write_wait:Connection to ... Broken pipe'错误 [英] How to fix 'packet_write_wait: Connection to ... Broken pipe' error in Git

查看:840
本文介绍了如何修复Git中的'packet_write_wait:Connection to ... Broken pipe'错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将文件git push到远程存储库并抛出错误"packet_write_wait:连接到13.250.177.223端口22:管道损坏"时,该如何解决问题?在git push之前,我已经从遥控器和git addgit commit成功.

How can I fix the problem when I git push files to my remote repositories and it throw the error 'packet_write_wait: Connection to 13.250.177.223 port 22: Broken pipe'?Before git push, I had clone the project from the remote and git add, git commit successfully.

我已经尝试过git pullgit config http.postBuffer 52428800,但是它不起作用.

I haved tried git pull, git config http.postBuffer 52428800, but it doesn't work.

HP@EverChan MINGW32 /d/ChromeDownload/jiaoben5049/meetingDemo (master)
$ git pull
packet_write_wait: Connection to 52.74.223.119 port 22: Broken pipe
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
HP@EverChan MINGW32 /d/ChromeDownload/jiaoben5049/meetingDemo (master)
$ git config http.postBuffer 52428800
HP@EverChan MINGW32 /d/ChromeDownload/jiaoben5049/meetingDemo (master)
$ git push -u origin master
Counting objects: 46, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (46/46), done.
packet_write_wait: Connection to 13.250.177.223 port 22: Broken pipe
Writing foabjecttals:   8:% The  (4/4remote end hung up u6nex)pectedly
fatal: sha1 file '<stdout>' write error: Broken pipe
fatal: The remote end hung up unexpectedly
HP@EverChan MINGW32 /d/ChromeDownload/jiaoben5049/meetingDemo (master)
$ git push -u origin master
packet_write_wait: Connection to 13.250.177.223 port 22: Broken pipe
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


推荐答案

在将我的仓库推送到github的情况下,对我有用的是在〜/中将 IPQoS = throughput 添加到我的配置文件中. ssh/config. 此处

What worked for me in the context of pushing my repo to github was adding IPQoS=throughput to my config file in ~/.ssh/config. The other steps for making sure SSH is are set up correctly, added to your Github account etc. are detailed here

这篇关于如何修复Git中的'packet_write_wait:Connection to ... Broken pipe'错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆