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

后端 未结 21 838
春和景丽
春和景丽 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:50

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

    This was caused because I forgot to specify the SCM-tag in the pom.xml of my Maven-project, so it used the SCM-information from the parent project instead. I also had to add our Jenkins user to the project in GitLab.

    0 讨论(0)
  • 2020-11-28 11:50

    In my case I was observing this error only in "SSH Extensions" for Windows.

    The same command worked from command line. I switched SSH setting from PuTTY to OpenSSH and it stopped generating error.

    0 讨论(0)
  • 2020-11-28 11:51

    Another possibility is that you misspelled the repository name.

    I've done it twice in the last two days. I added a remote and misspelled it and I misspelled the name when creating the project on GitLab.

    In both cases when I tried to push to remote I got

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

    So check that spelling!

    Also, if you create the project under a different name (like a group) make sure that's the remote you add.

    0 讨论(0)
提交回复
热议问题