gitlab-shell push fatal error

I am having problem in getting my initial repo pushed to gitlabhq server using gilab-shell. Earlier I had setup gitlabhq (2.1) + gitolite that is working fine.

ssh -T
Welcome to GitLab 5.2, Anonymous!

But when I try to push anything

  • After reverting to an old commit, I can't go back to the most recent commit
  • How to check if the revision(commit) exists in a remote Git repository
  • Can I amend a commit to the master branch from a new local branch?
  • How to push bare repo branches to another remote?
  • How to config namespace for 'private' branches in git?
  • resolving conflicts an push reproduce same conflicts again
  • git push -u origin master
    fatal: The remote end hung up unexpectedly

    I checked across many answers in stackover flow and the issue list of gitlab but non of them seems to help me.

    GitLab v5.0 git push problems!msg/gitlabhq/dqiHDBrXOjQ/PEntFiYxTGUJ

  • Why does my git history look like a christmas tree?
  • gitworkflows - how exactly to graduate a branch?
  • Git: How can I put a commit between older commits without changing the files/folders of later commits?
  • Git says “Warning: Permanently added to the list of known hosts”
  • Git equivalent to TFS Shelve before trying something risky
  • Gerrit remove Need Verified +1 (Verified)
  • 2 Solutions collect form web for “gitlab-shell push fatal error”

    Answering my own question. The issue turn out to be with gitlab url.

    So it was not issue more of a configuration setup. The config.yml of gitlab-shell should correctly point the URL. In my case it was

    Also, I use RVM for all ruby stuff, so make sure change all ruby binary path in gitlab config files from /usr/bin/ruby to $HOME/.rvm/bin/ruby.

    $ git config –global “Your Name Comes Here”
    $ git config –global

    First type the above commands with your username as email and password.

    then type these line of code
    $ git init
    $ git add .

    then type the command it will work.

    Git Baby is a git and github fan, let's start git clone.