Created
November 22, 2011 19:18
-
-
Save dzaporozhets/1386614 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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