Gitosis requires password even though the public key is given

前端 未结 11 985
挽巷
挽巷 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条回答
  •  Happy的楠姐
    2021-02-07 04:30

    An empty repository was created because that's just how git works: it has to init a repo before it can start pulling remote objects into it. Unfortunately this means you'll have to manually delete the empty repo before you try cloning again.

    As for why the clone failed, it looks like you're using the wrong syntax for the remote repository path; git clone doesn't use scp syntax. In fact, if you don't specify a clone protocol, I believe it assumes the git protocol rather than ssh, which would probably be why it asked you for a password. Try this instead:

    $ git clone ssh://gitosis@host/~/gitosis-admin.git
    

提交回复
热议问题