如何修复Git中的'packet_write_wait:连接到...管道损坏'错误
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何修复Git中的'packet_write_wait:连接到...管道损坏'错误相关的知识,希望对你有一定的参考价值。
当git push
文件到我的远程存储库并且它抛出错误'packet_write_wait:连接到13.250.177.223端口22:断管'时,如何解决问题?在git push
之前,我从远程克隆了项目并且git add
,git commit
成功。
我曾尝试过git pull
,git config http.postBuffer 52428800
,但它不起作用。
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.
确保远程源的SSH URL确实有效:
ssh -T yourServer
它的IP地址不应该改变。
查看问题是否仍然存在于latest Git for Windows(PortableGit-2.20.1-64-bit.7z.exe
),在C:\ Git中解压缩,并在CMD会话中设置simplified PATH。
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\path\to\git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%
在将我的repo推送到github的上下文中对我有用的是在〜/ .ssh / config中将IPQoS = throughput添加到我的配置文件中。确保SSH的其他步骤已正确设置,添加到您的Github帐户等详细here
以上是关于如何修复Git中的'packet_write_wait:连接到...管道损坏'错误的主要内容,如果未能解决你的问题,请参考以下文章
如何修复Backbone.stickit中的'this.stickit()不是函数'错误
joomla:如何修复“CLASS'JPLATFORMUTILITY'未找到”
如何修复React-Native中的“路由组件'Principal'必须是React组件”错误
如何修复'ValueError:shapes(1,3)和(1,1)未对齐:3(dim 1)!= 1(dim 0)'numpy中的错误