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

StackOverflow https://stackoverflow.com/questions/22897681

  •  28-06-2023
  •  | 
  •  

質問

How to create multiple users for a single GIT repository with different credentials?

i.e. 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.

See "How do programs like gitolite work?" for more.

But you cal also plug gitolite with https, and use https authentication instead (with LDAP for example).

Gitolite is just a perl script which deals with authorization, not authentication.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top