Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git: fatal: protocol error: bad line length character: logi

Tags:

git

Trying to push to a git repository, I got the error fatal: protocol error: bad line length character: logi. I was able to run git clone just fine, it's only the push that didn't work.

Tools involved:

  • Git for Windows
  • Plink
  • Pageant

Per this answer, I tried plink <site> git-receive-pack <directory> but got fatal: bad argument. So did others who were able to successfully push to the repo.

My permissions were the same as other people who could push to the repo.

Another person tried Git for Windows and it worked fine for them.

I've been able to successfully push to SVN via the Eclipse plugin on the very same host, using the very same SSH key.

Running Plink in verbose mode, I verified that it was retrieving the correct key from Pageant.

like image 207
pmcnet Avatar asked Oct 21 '25 12:10

pmcnet


1 Answers

I overcame this issue by putting my username in front of the host-name. e.g.

git clone ssh://github.com/organization/repo

becomes

git clone ssh://[email protected]/organization/repo
like image 131
Crisisiscris Avatar answered Oct 23 '25 01:10

Crisisiscris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!