04-Git 提示write error: Broken pipe







Git 提示 write error: Broken pipe

自从之前给 Git 设置好代理之后,我就确认了代理和代理设置没有任何问题。但是某天突然给我报错

Enumerating objects: 23, done.
Counting objects: 100% (23/23), done.
Delta compression using up to 12 threads
send-pack: unexpected disconnect while reading sideband packet
Connection to github.com closed by remote host.
Compressing objects: 100% (22/22), done.
fatal: sha1 file '<stdout>' write error: Broken pipe
fatal: the remote end hung up unexpectedly

我第一反应肯定是认为代理又出现问题了,但是我之前没有问题,不可能突然出现问题,我查询了很久,突然想到 Git 使用的是 SSH 协议。那么一般的 SSH 在长时间不活跃之后也会被默认关闭,所以我根据这条线索查询了以下该如何保持 SSH 的长连接

1、保持长连接


  1. 找到 .ssh 目录,如果你安装的时候没有更改,那么目录可能是在 C:\Users\admin\.ssh

  2. 编辑目录下的 config 文件,如果文件不存在,则新建一个 .txt 文件,并将文件名和后缀删掉改成 config

  3. 添加以下内容

    Host *  
    ServerAliveInterval 120  


暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇