如何修复Git中的'packet_write_wait:连接到...管道损坏'错误

问题描述 投票:3回答:2

git push文件到我的远程存储库并且它抛出错误'packet_write_wait:连接到13.250.177.223端口22:断管'时,如何解决问题?在git push之前,我从远程克隆了项目并且git addgit commit成功。

我曾尝试过git pullgit 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.


git github ssh
2个回答
1
投票

确保远程源的SSH URL确实有效:

ssh -T yourServer

它的IP地址不应该改变。

查看问题是否仍然存在于latest Git for WindowsPortableGit-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%

1
投票

在将我的repo推送到github的上下文中对我有用的是在〜/ .ssh / config中将IPQoS = throughput添加到我的配置文件中。确保SSH的其他步骤已正确设置,添加到您的Github帐户等详细here

© www.soinside.com 2019 - 2024. All rights reserved.