Firstly, getting a git server up and running is pretty easy.
Make sure git is installed aptitude install git
Create a git user adduser git
Change the git user’s shell echo $(which git-shell) >> /etc/shells
, and then chsh git -s $(which git-shell)