![如何在 gitosis 中设置存储库路径?](https://linux22.com/image/1276916/%E5%A6%82%E4%BD%95%E5%9C%A8%20gitosis%20%E4%B8%AD%E8%AE%BE%E7%BD%AE%E5%AD%98%E5%82%A8%E5%BA%93%E8%B7%AF%E5%BE%84%EF%BC%9F.png)
我正在 NearlyFreeSpeech.net 账户上设置 gitosis,“虚拟” Python。我尝试克隆 gitosis-admin.git 存储库。下面的命令不起作用。
$ git clone [email protected]:gitosis-admin.git
Initialized empty Git repository in /home/tlevine/bar/a/gitosis-admin/.git/
[email protected]'s password:
fatal: 'gitosis-admin.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
下面的命令可以实现。
$ git clone [email protected]:~/repositories/gitosis-admin.git
Initialized empty Git repository in /home/tlevine/bar/a/gitosis-admin/.git/
[email protected]'s password:
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (8/8), done.
Receiving objects: 100% (8/8), 1.06 KiB, done.
remote: Total 8 (delta 0), reused 5 (delta 0)
如果不用输入“~/repositories/”的话会很方便。我尝试编辑 gitosis.conf。
[gitosis]
repositories = ~/repositories/
[group gitosis-admin]
writable = gitosis-admin
members = tlevine@tlevine-laptop
我在上面添加了“repositories”行。它没有改变任何一个 git-clone 命令的结果。有什么方法可以让第一个命令正常工作吗?