RecentChanges TextFormattingRules AllWikiTopics OrphanedWikiTopics ToDoWikiTopics WikiLockList RSS Export2HTML WikiSearch SetUsername StartingPoints Home |
gitolite
How I installed gitolite on a RaspberryPiMount my git repositoriesInstall autofs$ sudo apt-get install autofsConfigure autofs to mount a share from a nas $ sudo vim.tiny /etc/auto.misc nas3.git -fstype=nfs4,rw,soft,intr,nosuid,rsize=8192,wsize=8192,timeo=14,async,noatime nas3:/media/nas/gitConfigure autofs to read auto.misc $ sudo vim.tiny /etc/auto.master /misc /etc/auto.miscRestart autofs (only needed because auto.master was changed) $ sudo service autofs restartTest $ sudo ls -l /misc/nas3.git/ Install gitolite version 3$ sudo apt-get -y install gitolite3 Create git user and configureAdd the git user$ sudo adduser --system --shell /bin/bash --group --disabled-password --home /home/git gitMake the repositories folder $ sudo su - git $ mkdir repositories $ exitRemount my git repositories $ sudo vim.tiny /etc/fstab /misc/nas3.git /home/git/repositories none bind 0 3 $ sudo mount -aTest $ sudo su - git $ ls repositories Setup gitoliteI've used gitolite before, so this is the minimum I need to make it run again$ sudo su - git $ gitolite setup -pk /tmp/mdsh.pubThen go to my gitolite-admin repo and push my current setup into the gitolite server $ cd ~/git/gitolite-admin $ git push -f See alsogitolite is mentioned on: Linux |