将用户添加到Gitolite

Rap*_*ael 15 git ssh gitolite

我正在尝试设置Gitolite,但我遇到了一个奇怪的问题:

当我为新用户添加一个新的公钥文件(比如raphaelcruzeiro.pub)时,giolite在push上发出以下警告:

remote: 
remote:         ***** WARNING *****
remote:         the following users (pubkey files in parens) do not appear in the config file:
remote: raphaelcruzeiro(raphaelcruzeiro.pub)
Run Code Online (Sandbox Code Playgroud)

当我尝试使用此用户克隆存储库时,我获得了拒绝权限:

Cloning into gitolite-admin...
R access for gitolite-admin DENIED to raphaelcruzeiro
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

我在这里错过了什么吗?在何处以及如何将用户添加到配置文件中?

不幸的是,Gitolite的文档在这个问题上相当模糊.

Dar*_*uuk 24

以下是将用户添加到gitolite的工作流程:

将用户公钥添加到地图keys<username>.pub

编辑你的gitolite配置文件(gitolite.conf),这个文件在地图中conf.当你打开它时,everthing将是清晰的.

例:

repo  someproject

  RW+ = darhuuk

  RW  = raphaelcruzeiro

  R   = santaclaus
Run Code Online (Sandbox Code Playgroud)

提交新密钥和修改后的配置文件.然后将它推送到您的gitolite服务器.

应该这样做!

[编辑]顺便说一句,这里是噱头段落,解释了我上面写的内容:http: //gitolite.com/gitolite/conf.html.