git - 致命的 : protocol error: bad line length charac

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

相关文章:

php - 在 PHP 中从文件流创建 Zip

hibernate - QueryDSL - 仅比较 dateTime 中的日期

r - tcltk 对话框出现在 RStudio/Shiny Windows 下

asp.net-core - ASP.NET 核心 : Initiating a request t

kubernetes - 是否可以在同一端口上使用 nodeport 类型的 2 个不同 names

python - 模块 'site' 没有属性 'getusersitepackages'

amazon-web-services - AWS Batch 可以运行 Windows Docke

css - 如何将样式导出到样式组件中的外部样式表?

ios - UITextContentType* 不工作

azure-ad-b2c - 休息 API 超时