git server use git-daemon git://…

sudo apt-get install git-daemon-run

sudo vim /etc/sv/git-daemon/run

#!/bin/sh
exec 2>&1
echo 'git-daemon starting.'
exec chpst -ugitdaemon 
  /usr/lib/git-core/git-daemon --verbose --export-all --base-path=/home/git --enable=receive-pack

sudo sv restart git-daemon

--enable=receive-pack

這個參數用來接收 git push 用的

參考:
http://smilejay.com/2011/12/git-daemon/