Gitosis requires password even though the public key is given

前端 未结 11 773
挽巷
挽巷 2021-02-07 03:51

I\'m confronted with some problems when trying to configure gitosis on my Archlinux

http://wiki.archlinux.org/index.php/Setting_Up_Git_ACL_Using_gitosis

I referr

11条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-07 04:20

    I also faced the same problem "fatal: '/gitosis-admin.git' does not appear to be a valid repository." I searched a lot for the problem and finally found the solution.

    Actually, the default address of gitosis user is "/srv/gitosis" : As in case of my setup having ubuntu server 10.04.

    And when we write "git clone gitosis@server.com:gitosis-admin.git", it searches for gitosis-admin.git repository in /srv/gitosis. So when I entered inside the /srv/gitosis, I found out that there is another repository inside it named as repositories which consists of the gitosis-admin.git repository.

    So actually by default the gitosis-admin.git was not in the default location. So I have to modify the command path and then it worked fine.

    I got the repository cloned onto my local machine. I used the command as:

    "git clone gitosis@server.com:repositories/gitosis-admin.git" and it worked fine for me.

    See for the gitosis-admin directory in your case and I hope you will be able to solve your problem.

提交回复
热议问题