Book Image

Gitolite Essentials

By : Sitaram Chamarty
Book Image

Gitolite Essentials

By: Sitaram Chamarty

Overview of this book

Table of Contents (19 chapters)
Gitolite Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Branch level access control and refexes


This section will talk about a very important part of Gitolite—specifying who can make changes to which branch or tag. As a matter of historical interest, the lack of this feature, in what was at that time the most popular tool for Git server administration, was the sole motivation for Gitolite being created.

Tip

This section assumes some familiarity with regular expressions.

To understand branch level access control and how to specify them in Gitolite, we should first have a quick refresher of related concepts in Git itself, to make things easier to understand.

Git uses the word ref to refer to both branches and tags. Branch names are usually of the form refs/heads/something, while tag names are of the form refs/tags/something. When a user pushes to a Gitolite managed repository, Gitolite helps you determine whether the refs being updated are allowed to be updated by this user or not.

Thus, to allow Bob to push the branch called master, you might write...