Skip to content

Instantly share code, notes, and snippets.

@dzaporozhets
Created November 22, 2011 19:18
Show Gist options
  • Save dzaporozhets/1386614 to your computer and use it in GitHub Desktop.
Save dzaporozhets/1386614 to your computer and use it in GitHub Desktop.
sudo apt-get install gitosis
sudo adduser \
--system \
--shell /bin/sh \
--gecos 'git version control' \
--group \
--disabled-password \
--home /home/git \
git
ssh-keygen -t rsa
sudo -H -u git gitosis-init < ~/.ssh/id_rsa.pub
sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment