Scroll To Top

This article explains how to get Gitolite up and running on a Ubuntu 12.04 server. To save time everything is in script format (copy and paste).


If you don't already you want openssh and git installed.

sudo apt-get -y install openssh-server openssh-client git-core git-doc git-daemon-run gitolite

If you don't already have git installed, you should set it up now.

git config --global "Your Name"
git config --global This email address is being protected from spambots. You need JavaScript enabled to view it.

Preparing SSH key

On the computer you plan to use to connect to generate a public private key.

ssh-keygen -t rsa

Then copy it to the server

scp ~/.ssh/ [email protected]

Gitolite setup

#Create user for git
sudo adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git

sudo su git
echo "PATH=$HOME/bin:$PATH" > ~/.bashrc
gl-setup /tmp/

Note: make sure that your is owned by the git user, or this won't work

Now you are going to have to look up gitolite documentation to be able to use it, but you are all setup and installed!