Git server and SSH Debian HOWTO

the following content may not be accurate and detailed

Server

1. apt-get install git
2. apt-get install  git-daemon-sysvinit
3. mkdir  -p /home/user/project.git
4. cd /home/user/project.git
5. git init
6. git config --global user.name "Your Name"
7. git config --global user.email "you@example.com"
8. git commit -a
9. touch .git/git-daemon-export-ok
10. git config --bool core.bare true
11. edit /etc/init.d/git-daemon file and change to
"GIT_DAEMON_BASE_PATH=${GIT_DAEMON_BASE_PATH:-/home/user}"
12. service git-daemon restart

Client

1. git clone ssh://user@server/home/user/project.git