Monday, January 9, 2012

LinuxMint12: Install Git Server

sudo apt-get -y install git-core gitosis

ssh-keygen -t rsa

Just hit enter to use default location. (it creates ~/.ssh/id_rsa.pub and ~/.ssh/id_rsa)
Remember the password you enter.

sudo -H -u gitosis gitosis-init < ~/.ssh/id_rsa.pub

Enter the same password if it asks you to unlock private key file.

git clone gitosis@localhost:gitosis-admin.git

No comments:

Post a Comment