我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.
答案 0 :(得分:1)
确保您的远程来源的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%
答案 1 :(得分:1)
在将我的仓库推送到github的情况下,对我有用的是在我的配置文件〜/ .ssh / config中添加了 IPQoS = throughput 。 here
详细说明了确保SSH设置正确,已添加到您的Github帐户等其他步骤。