David Trevor
David Trevor

Reputation: 989

User permission on branch level in Git?

I am having trouble understanding how several environments interact with Git if I want to specify permissions for users created in Git.

For example, if I use GitLab, can it handle user permission? If I make changes here will it only affect the web interface or modify access rights on the concrete server that hosts Git?

I've read that Gitolite is a tool to handle authentification...Can I use it in conjunction with GitLab? I'm kinda lost, so thanks in advance.

Upvotes: 2

Views: 236

Answers (1)

AnoE
AnoE

Reputation: 8345

git itself (the protocol, the command line or the physical repository) has no provisions for branch level permissions (or, really, any particularly intelligent persistent permission scheme at all).

GitLab, Gitolite etc. add another layer on top which may or may not be accessible if you do a bare-bones clone of the repository; I do not know if they store there permission information in the actual repository at all, or alongside it.

If you want to stay with the default git server model (i.e., over ssh or locally), then you may be able to cobble something together with server side hooks.

Upvotes: 2

Related Questions