Chapter 5. Managing Repositories

One of the advantages of using Gitolite is that you do not need to create new repositories manually, set their permissions, and so on. Gitolite does all this for you, based on the contents of a specific file (conf/gitolite.conf) in the gitolite-admin repository. In this chapter, we will show how you can add new repositories to Gitolite, as well as how to bring in existing repositories in to Gitolite's ambit.

Adding repositories

To add a new repository, you will need to do the following in your clone of the gitolite-admin repository.

First, edit the conf/gitolite.conf file. This file should have some content already, for example:

repo    gitolite-admin
    RW+     =   adam
repo    testing
    RW+     =   @all

This basically says that only ...

Get Gitolite Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.