我正在 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 命令的结果。有什么方法可以让第一个命令正常工作吗?