$ 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/
$ sudo apt-get -y install gitolite3
$ 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
$ 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