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

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

  •  28-06-2023
  •  | 
  •  

Question

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.!!!

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top