forked from gitlabhq/gitlabhq
-
Notifications
You must be signed in to change notification settings - Fork 0
Gitolite
randx edited this page Jan 22, 2012
·
17 revisions
sudo apt-get install openssh-server
sudo adduser \
--system \
--shell /bin/sh \
--gecos 'git version control' \
--group \
--disabled-password \
--home /home/git \
git
# Add your user to git group
sudo usermod -a -G git `eval whoami`
# copy your pub key to git home
sudo cp ~/.ssh/id_rsa.pub /home/git/rails.pub
# clone gitolite
sudo -u git -H git clone git://github.com/gitlabhq/gitolite /home/git/gitolite
# install gitolite
sudo -u git -H /home/git/gitolite/src/gl-system-install
# Setup (Dont forget to set umask as 0007!!)
sudo -u git -H sh -c "PATH=/home/git/bin:$PATH; gl-setup ~/rails.pub"
sudo chmod -R g+rwX /home/git/repositories/
sudo chown -R git:git /home/git/repositories/
# clone admin repo to add localhost to known_hosts
# & be sure your user has access to gitolite
git clone git@localhost:gitolite-admin.git /tmp/gitolite-admin
# if succeed you can remote it
rm -rf /tmp/gitolite-admin