From ArchWiki
Revision as of 00:07, 5 November 2011 by Cosmin (talk | contribs) (Created page with "[ Gitolite] allows you to host Git repositories easily and securely. == Installation == {{AUR|gitolite-git}} can be installed with [[ya...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Gitolite allows you to host Git repositories easily and securely.


gitolite-gitAUR can be installed with yaourt.


Add a user

# adduser --system --shell /bin/bash --group git --disabled-password --home /srv/git
# su - git
$ gl-setup

Do NOT add repos or users directly on the server! You MUST manage the server by cloning the special 'gitolite-admin' repo on your workstation:

$ git clone git@server:gitolite-admin

Add users

Ask each user who will get access to send you a public key. On their workstation generate the pair of ssh keys:

$ ssh-keygen

Rename each public key according to the user's name, with a .pub extension, like or You can also use periods and underscores. Have the users send you the keys.

Copy all these *.pub files to keydir in your gitolite-admin repo clone. You can also organise them into various subdirectories of keydir if you wish, since the entire tree is searched.

Edit the config file (conf/gitolite.conf in your admin repo clone). See the gitolite.conf documentation ( for details on what goes in that file, syntax, etc. Just add new repos as needed, and add new users and give them permissions as required. The users names should be exactly the same as their keyfile names, but without the .pub extension

$ nano conf/gitolite.conf

Commit and push the changes them:

git commit -a
git push