gpt4 book ai didi

linux - git pull/push 返回 : fatal: protocol error: bad line length character: _

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:14:41 27 4
gpt4 key购买 nike

当我运行 $git push$git pull dev master 时,我收到了这个错误:

fatal: protocol error: bad line length character: _

我搜索并找到了这个解决方案:

ssh <host> git-receive-pack <path-to-git-repository>

我运行了它。这是服务器响应:

00..4b29e780 refs/heads/master report- 
status delete-refs side-band-64k quiet ofs-delta agent=git/1.8.3.1
00..4b29e780 refs/remotes/origin/HEAD
00..4b29e780 refs/remotes/origin/master
0000

这是什么意思?有什么问题?

最佳答案

检查 ssh git@YourServer 的输出

通常,它是某种欢迎消息(因为 Git 服务器应该禁止交互式 session )。

但是,如果您在该欢迎消息之前看到任何其他输出,则可以解释使用 SSH 时出现的任何 Git 错误。如评论所述,检查该帐户的资源文件输出任何文本。

关于linux - git pull/push 返回 : fatal: protocol error: bad line length character: _,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54670833/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com