Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Gitolite Essentials
  • Table Of Contents Toc
Gitolite Essentials

Gitolite Essentials

By : Sitaram Chamarty
4 (2)
close
close
Gitolite Essentials

Gitolite Essentials

4 (2)
By: Sitaram Chamarty

Overview of this book

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

Defining user and repo groups


Gitolite allows you to define groups of users or repositories for convenience. The syntax is very simple, and does not distinguish between a user group and a repository group. For example, take a look at the deny rule example in the previous section:

-         master    =  bob
RW+                 =  bob

Let's say that, instead of just Bob, you had several more users who must be prevented from pushing the master branch, perhaps because they are all junior developers. One way is to add each of their usernames on both the rule lines, after Bob's username, like this:

-          master    =  bob carol dave
RW+                  =  bob carol dave

But this gets cumbersome, and will only get worse if there are more rules to be applied to the same group of people.

With groups, however, you can do this:

@junior-devs    =  bob carol dave

-          master    =  @junior-devs
RW+                  =  @junior-devs

As you can see, this is far more convenient, and also less error...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Gitolite Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon