📜  致命:协议错误:错误的行长度字符:git@ - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:52.506000             🧑  作者: Mango

代码示例1
This error message is a bit obtuse, but what it's actually trying to tell you is that the remote server didn't reply with a proper git response. Ultimately, there was a problem on the server running the git-receive-pack process.
In the Git protocol, the first four bytes should be the line length. Instead, they were the characters Unab... which is probably the beginning an error message of some kind. (ie, it's probably "Unable to..." do something).
What happens when you run ssh  git-receive-pack ? You should see the error message that your git client is barfing on and you may be able to correct it.