Gitlab-shell push致命错误



我在使用gilab-shell将我的初始repo推送到gitlabhq服务器时遇到了问题。早先我已经安装了gitlabhq (2.1) + gitolite,工作正常。

ssh -T git@git.domain.net
Welcome to GitLab 5.2, Anonymous!

但是当我尝试按压任何东西

git push -u origin master
fatal: The remote end hung up unexpectedly

我在stackover flow和gitlab的问题列表中检查了许多答案,但似乎没有一个对我有帮助。

https://github.com/gitlabhq/gitlab-shell/issues

GitLab v5.0 git push问题

https://groups.google.com/forum/!味精/gitlabhq/dqiHDBrXOjQ/PEntFiYxTGUJ

回答我自己的问题。问题原来是与gitlab url。

所以这不是一个配置设置的问题。配置。gitlab-shell的yml应该正确指向URL。在我的例子中是http://git.domain.com:9222/。

另外,我使用RVM来处理所有ruby的东西,所以请确保将gitlab配置文件中的所有ruby二进制路径从/usr/bin/ruby更改为$HOME/. RVM/bin/ruby。

$ git config -global user.name "Your Name Comes Here"$ git config——全局用户。电子邮件you@yourdomain.example.com

首先输入上述命令,用户名作为电子邮件和密码。

然后键入这些代码行$ git init$ git add .

然后输入命令,它将工作

最新更新