致命:协议错误:错误的行长字符:Inva [英] fatal: protocol error: bad line length character: Inva

查看:116
本文介绍了致命:协议错误:错误的行长字符:Inva的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Openshift中安装的bpm套件克隆存储库时,出现以下git错误.

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

致命:协议错误:错误的行长字符:Inva

请帮助我解决此问题.

推荐答案

在使用ssh网址(例如git@aserver:arepo)时通常会看到此错误

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

通常的原因是,在git repo托管服务器端,包含一些回显的.profile或.bashrc:请参见

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

这可能意味着在以命令方式登录ssh时,您有一些多余的字符,信息消息或其他内容.

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

您应该只看到返回的测试命令.如果还有其他字符,则应检查点外壳rc文件,以查找可能产生输出的任何回声或其他命令.

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.

对于您而言,对于Openshift,请考虑以下常见问题之一命令:

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

rhc ssh ls

rhc ssh ls

检查ls是否被其他任何输出污染.

Check if the ls is polluted by any other output.

这篇关于致命:协议错误:错误的行长字符:Inva的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆