Git 致命:协议错误:错误的行长度字符:[-]

Git 致命:协议错误:错误的行长度字符:[-],git,github-for-windows,Git,Github For Windows,在Git Bash(Windows XP)中,出现一个错误永久[-]mapping\u data\u source::init error:file not found。但早些时候,这并不是其他错误的原因。现在我正在尝试克隆我的存储库并获取错误: $ git clone hello cloned_hello [-] mapping_data_source::init error: file not found Cloning into 'cloned_hello'... fatal: proto

在Git Bash(Windows XP)中,出现一个错误永久
[-]mapping\u data\u source::init error:file not found
。但早些时候,这并不是其他错误的原因。现在我正在尝试克隆我的存储库并获取错误:

$ git clone hello cloned_hello
[-] mapping_data_source::init error: file not found
Cloning into 'cloned_hello'...
fatal: protocol error: bad line lengt character: [-]
fatal: write error: Invalid argument
而且没有“u2;”


当您在$HOME中(在Windows bash会话中)有一个
.profile
.bashrc
时,可能会发生这种情况,它会产生一些回声(不是静默的)


要测试这一点,请检查当您尝试从CMD会话而不是从bash会话克隆时问题是否仍然存在(在$HOME中调用
.profile
.bashrc
时可能发生的问题(在Windows bash会话中)哪一个有回声(不是无声的)

要测试这一点,请在尝试从CMD会话而不是bash会话克隆时检查问题是否仍然存在(调用
c:\path\To\PortableGit-2.6.3-64位\git CMD.exe以打开此类会话)

$ git clone hello clonedhello
[-] mapping_data_source::init error: file not found
Cloning into 'clonedhello'...
fatal: protocol error: bad line length character: [-]
fatal: The remote end hung up unexpectedly