Here I find a nice clear working guide

http://fclose.com/b/linux/366/set-up-git-server-through-ssh-connection/