每次尝试推送到 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/