clone时不能用绝对路径,只能写相对于git用户home的相对路径 错误:git@ip:gitosis-admin.git 正确:git@ip:/home/git/repositories/gitosis-admin.git
为什么已经是声明使用git用户ssh,还需要写 /home/git/ 这么麻烦呢?
操作系统:centos 6.5
http://stackoverflow.com/questions/7318918/fatal-does-not-appear-to-be-a-git-repository Found the answer.
Because the correct relative path is: git@ip:repositories/gitosis-admin.git. You omitted intermediate directories.
git@ip:repositories/gitosis-admin.git
If you configured gitosis, please check your configuration according to the installation instructions. Also please change to gitolite 3.
http://stackoverflow.com/questions/7318918/fatal-does-not-appear-to-be-a-git-repository
Found the answer.
Because the correct relative path is:
git@ip:repositories/gitosis-admin.git
. You omitted intermediate directories.If you configured gitosis, please check your configuration according to the installation instructions. Also please change to gitolite 3.