search

Home  >  Q&A  >  body text

使用git,clone时报does not appear to be a git repository

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

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

操作系统:centos 6.5

習慣沉默習慣沉默2828 days ago1019

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-04-28 09:07:58

    http://stackoverflow.com/questions/7318918/fatal-does-not-appear-to-be-a-git-repository
    Found the answer.

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-04-28 09:07:58

    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.

    reply
    0
  • Cancelreply