我已经在centOs7中安装了一个GitLab 7 CE Omnibus包。我遵循了所有的安装说明。在我尝试将本地存储库推送到服务器之前,一切都运行得很好。推送repo时,它要求提供我的git密码。我输入了正确的git密码,但仍收到此错误
$ git push -u origin master
git@192.168.1.149's password:
sh: git-receive-pack: command not found
fatal: The remote end hung up unexpectedly解决此问题的大多数说明都适用于手动安装的GitLab。有没有人在centOs7的GitLab 7 CE Omnibus包中解决了上述问题?
发布于 2015-02-27 17:07:38
不要使用linux的"git“用户。
您必须在您的PC中创建ssh密钥。
$ ssh-keygen -t rsa -C "$your_email“使用以下代码显示您的公钥。$ cat ~/.ssh/id_rsa.pub
登录GitLab并将您的公钥粘贴到您的配置文件中。
https://stackoverflow.com/questions/28727860
复制相似问题