Last active
December 19, 2015 18:39
-
-
Save MattSkala/6000804 to your computer and use it in GitHub Desktop.
Installing gitolite on Linux server
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
apt-get install gitolite | |
adduser \ | |
--system \ | |
--shell /bin/bash \ | |
--gecos 'git version control' \ | |
--group \ | |
--disabled-password \ | |
--home /home/git \ | |
git | |
su git | |
echo "PATH=$HOME/bin:$PATH" > ~/.bashrc | |
cd | |
# copy public key from client to server | |
scp ~/.ssh/id_rsa.pub root@<server>:/tmp/matt.pub | |
# never ever as root again! | |
gl-setup /tmp/matt.pub | |
# home | |
git clone git@<server>:gitolite-admin.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment