gpt4 book ai didi

git - 将用户添加到 Gitolite

转载 作者:IT王子 更新时间:2023-10-29 01:30:11 29 4
gpt4 key购买 nike

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

当我为新用户添加新的公钥文件时(比如 raphaelcruzeiro.pub),giolite 在推送时向我发送以下警告:

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

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

Cloning into gitolite-admin...
R access for gitolite-admin DENIED to raphaelcruzeiro
fatal: The remote end hung up unexpectedly

我是不是漏掉了什么?在哪里以及如何将用户添加到配置文件?

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

最佳答案

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

将用户公钥添加到映射keys作为<username>.pub

编辑你的gitolite配置文件(gitolite.conf),这个文件在 map conf中.当你打开它时,一切都会变得清晰。

例子:

repo  someproject

RW+ = darhuuk

RW = raphaelcruzeiro

R = santaclaus

提交新 key 和修改后的配置文件。然后将其推送到您的 gitolite 服务器。

应该可以了!

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

关于git - 将用户添加到 Gitolite,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5668674/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com