Skip to content

Instantly share code, notes, and snippets.

@ilude
Created August 13, 2012 20:47
Show Gist options
  • Save ilude/3343977 to your computer and use it in GitHub Desktop.
Save ilude/3343977 to your computer and use it in GitHub Desktop.
Gitolite Setup
sudo adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git
su - git
cd ~
apt-get -y install git-core
git clone git://github.com/sitaramc/gitolite
gitolite/install -ln /usr/local/bin
# copy public key to ~/id_rsa.pub
cp ~/id_rsa.pub /home/git
chown git:git /home/git/id_rsa.pub
su - git
gitolite setup -pk id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment