多个 gitolite "hosting user" 帐户

Multiple gitolite "hosting user" accounts

来自http://gitolite.com/gitolite/gitolite.html#hu

"When you install gitolite in ssh mode, you pick one specific user on the Unix system to be the "hosting user”。这是用户名进入您的用户将克隆的 repo URL 的用户,例如 ssh://git@server/repo,或更简单的形式 git@server:repo."

它非常清楚地说明了 一个特定用户,但我们是否也可以有 多个 托管用户,例如git.1git.2,每个都有自己的存储库,我们可以使用例如单独访问它们git.1@server:repogit.2@server:anotherrepo、等等?

如果您使用这些帐户在各自的主目录中安装 gitolite,它就可以工作。

su - git.1
mkdir -p ~/bin

git clone git://github.com/sitaramc/gitolite
gitolite/install -ln ~/bin          # please use absolute path here
gitolite setup -pk yourname.pub

(重复 git.2 等等)

但不要混合访问和托管:git.1git.2 和其他帐户可以简单地在 gitolite.config 中声明,访问他们自己的存储库,同时使用独特的 git 帐户作为托管服务用户帐户。

同一部分在最后一行说:

Of course you can have any number of "hosting users", but that's rare.

你是这个意思吗?