当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