A
A
Antony Ryabov2014-06-23 16:25:35
git
Antony Ryabov, 2014-06-23 16:25:35

What is the error when doing git push in gitlab?

Configuration:

CentOS 6.5
Gitlab 6.9.2
Nginx 1.0.15
Ruby 2.0.0p481 (2014-05-08 revision 45883)

Installed according to the manual https://github.com/gitlabhq/gitlab-recipes/blob/ma... I
created a repository, I try to push according to the instructions on the web:
:.git# git push -u origin master
  Counting objects: 3, done.
  Writing objects: 100% (3/3), 206 bytes | 0 bytes/s, done.
  Total 3 (delta 0), reused 0 (delta 0)
  fatal: protocol error: bad line length character: 385
  fatal: The remote end hung up unexpectedly
  fatal: The remote end hung up unexpectedly

Googling hasn't helped yet.
Tell me if you know please.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Antony Ryabov, 2014-06-24
@tonymadbrain

I found the solution myself, on the gitlab server it is necessary to register 127.0.0.1 mygitlab.ru in /etc/hosts

R
RPG, 2014-06-23
@RPG

:.git#
Try not to run as root.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question