gitlab为root设置了一个符号链接

时间:2015-02-19 03:10:41

标签: git gitlab

gitlab指令说要做到这一点。

git remote add origin git@git2.home:root / rippzy.git

但是,该路径未在服务器上设置。没有根目录或符号链接。

1 个答案:

答案 0 :(得分:0)

GitLab将一个命令标注添加到服务器的授权密钥文件中,所以当你在ssh上使用git命中它时,gitlab-shell程序就会接管。服务器上的某个位置会有一个存储库目录。 (如果您使用的是omnibus,可能在/ var / opt / gitlab / git-data / repositories中)

gitlab-shell调用普通的git-receive-pack / upload-pack,但是将它传递给该repo的完整路径。(在你的情况下,/ var / opt / gitlab / git-data / repositories /root/rippzy.git