fatal: protocol error: bad line length character: Inva

一曲冷凌霜 提交于 2019-12-08 08:10:18

问题


while cloning repositories from bpm suite installed in Openshift.I am getting the following git error.

fatal: protocol error: bad line length character: Inva

Please help me to fix this.


回答1:


This error is generally seen when using an ssh url (like git@aserver:arepo)

The usual cause is, on the git repo hosting server side, a .profile or .bashrc which includes some echo: see Git FAQ

It likely means you have some extraneous characters, info message or something upon logging into ssh in command mode.

To test this, do:

ssh user@git.example.com echo testing commands

You should only see testing commands returned. If there are any other characters, you should examine your dot shell rc file to find any echo or other commands that may produce output.

In your case, for Openshift, consider one of the common commands:

rhc ssh ls

Check if the ls is polluted by any other output.



来源:https://stackoverflow.com/questions/32644342/fatal-protocol-error-bad-line-length-character-inva

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!