git - 致命的 : protocol error: bad line length character: <htm

标签 git github

每次尝试推送到 git 时,我都会收到此错误。有人可以告诉我问题是什么以及如何解决吗?谢谢。

fatal: protocol error: bad line length character: <htm
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

最佳答案

如果您使用 ssh URL 推送到远程服务器,请仔细检查远程用户的 .profile.bashrc

如果该资源文件正在回显任何内容,就足以触发该协议(protocol)错误。

或者,如果可以(如果远程服务器支持),切换到 https:

git remote set-url origin https://url/remote/repo

关于git - 致命的 : protocol error: bad line length character: <htm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49186923/

相关文章:

git - 如何从 NetBeans IDE 8 和 Jenkins 重新连接到 GitLab 上的 git 存储库?

git - Jenkins:尝试使用 SSH pull 存储库时 Git 插件超时

javascript - 如何读取Github存储库中的.yaml文件并将内容发布到Github页面

html - Github 页面 SCSS 文件未被读取

macos - GitHub for Mac 不再安装 Git 消息

git - 删除带有西里尔字母标题的分支

git - docker 将什么用于(图像)版本控制?

git - git 中的 svn revert 等价物是什么?

Git/Github 配置错误导致推/pull 需要很长时间

angular - 无法将提交推送到远程 GitHub