19 responses to “Install Gitolite To Manage Your Git Repositories”

  1. airtonix

    1. Instead of hardconding the customisable names you should use a step to customise them :


    2. you need to specify the home directory of the remote user when copying the public key to the remote host

    scp ~/.ssh/id_rsa_gitolite.pub gitbox

    needs to be

    scp ~/.ssh/id_rsa_gitolite.pub $REMOTE_HOST:/home/$REMOTE_USER

  2. Website design

    Nice fast tutorial. Thank you.

    One remark though. Regarding “cat id_rsa_gitolite.pub >> .ssh/authorized_keys” …

    In my case gitolite user’s authorized_keys file needs to have following format in them:

    command=”/usr/share/gitolite/gl-auth-command johndoe”,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAvwKWiIoF23S6TXMEr8H2U18hkpuPrt5nOsUhqvR7XB8Wpkf7Al5SKNpgpfb/4CGVrSSzDvwmTN/cO6SDO3td8h1NBVl0APaAmZ7x6RFyoN5NCco/raOfVK+0Ktwg1Yoq7S8TdUKRP1phDHnHnlSkwbhzk1TETOEiSZTboH6FMHs johndoe@hostname

    Only putting pub key file in it did not work.

  3. Getting started with Git

    [...] There are two downsides with Git. The first is that there’s no central server to store the code base. GitHub can fulfill this role if you don’t mind someone else hosting your source code. If you want to set up a central server yourself it seems the best solution is gitolite. The documentation isn’t for beginners, but I found a decent tutorial on setting up gitolite. [...]

  4. Pradeep Sharma

    it should be ssh gitbox and not ssh gitolite

  5. Tim Orph

    Does anyone know if it is posible to use server where gitolite is installed, as client and edit repository files ? i don’t know where does even gitolite save this files on server so i could try “git status” or smth.

  6. Tim Orph

    Of course.. this is what I should do :)
    Thank you for making me realize.

  7. ed

    i believe the steps:

    cd gitolite/src
    ./gl-easy-install gitolite gitbox gitadmin
    is initiated from the client side. but who is gitadmin? what privileges does it have and on where?

    for absolute beginner, it is not clear in the article. can you add more details? thanks

  8. dale

    If you open the gl-easy-install file line 143 has a comment that “this *must* be run as “src/gl-easy-install”, not by cd-ing to src and then running “./gl-easy-install. You may want to update your gl-easy-install instructions.

    Excellent article, I have been struggling with the gitolite install, there’s many docs on it, but your’s made the most sense.

  9. Michal

    Unfortunately the file gl-easy-install is no longer distributed with gitolite and this “remote” installation is no longer possible. In short – when you use non-root installation method, you create your git user, clone gitolite, run src/gl-system-install and later gl-setup YourName.pub (on the server), clone your gitolite-admin repo (to the workstation)

  10. Roger Ivy

    Phil, do you have updated instructions for the most recent versions of both Gotolite and Ubuntu (12.04LTS)?

    It seems that this command is no longer valid: gl-easy-install

    I’ve tried these instructions but hit permission issues: https://github.com/sitaramc/gitolite

  11. Charles Burns

    I second what Roger Ivy says above: Love to see an updated version of thbis how-to for the most recent version of gitolite, since gl-easy-install doesn’t exist anymore…