使用git,clone时报does not appear to be a git repository
習慣沉默
習慣沉默 2017-04-28 09:05:58
0
2
989

clone时不能用绝对路径,只能写相对于git用户home的相对路径
错误:git@ip:gitosis-admin.git
正确:git@ip:/home/git/repositories/gitosis-admin.git

为什么已经是声明使用git用户ssh,还需要写 /home/git/ 这么麻烦呢?

操作系统:centos 6.5

習慣沉默
習慣沉默

reply all(2)
左手右手慢动作

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template