Git push results in fatal: protocol error: bad line length character: This

后端 未结 21 966
春和景丽
春和景丽 2020-11-28 10:56

I am trying to get GitLab working on my server (running CentOS 6.5). I followed the gitlab-receipe to the line, but I just can\'t get it working. I am able to access the web

21条回答
  •  醉梦人生
    2020-11-28 11:47

    In my case (private key over ~/.ssh/config) I had to leave out the ssh part in:

    git clone ssh://git@hostname:username/repository.git
    

    It worked with:

    git clone git@hostname:username/repository.git
    

    Error message was:

    fatal: protocol error: bad line length character: No s

提交回复
热议问题