简体   繁体   English

如何为具有不同访问权限的单个GIT存储库创建多个用户?

[英]How to create multiple users for a single GIT repository with different access permissions?

How to create multiple users for a single GIT repository with different credentials? 如何为具有不同凭据的单个GIT存储库创建多个用户?

ie I want to provide read-only access to a set of users and read-write access to another set of users. 即我想提供对一组用户的只读访问权限,而对另一组用户的读写访问权限。 Also, I need to give a unique username for each user in both the levels. 另外,我需要为两个级别的每个用户提供唯一的用户名。 It would be really helpful if I get the correct steps to perform this operation. 如果我获得执行此操作的正确步骤,那将真的很有帮助。

Thanks in advance.!!! 提前致谢。!!!

One way is to install gitolite , which allows you to declare and manage a set of users with, for instance ssh keys for authentication. 一种方法是安装gitolite ,它允许您使用例如ssh密钥进行身份验证来声明和管理一组用户。

See " How do programs like gitolite work? " for more. 有关更多信息,请参见“ 像gitolite这样的程序如何工作? ”。

But you cal also plug gitolite with https, and use https authentication instead (with LDAP for example ). 但是您也可以在gitolite上插入https,并改为使用https身份验证( 例如LDAP )。

Gitolite is just a perl script which deals with authorization, not authentication . Gitolite只是一个处理授权而不是身份验证的perl脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM