Git server and SSH Debian HOWTO

the following content may not be accurate and detailed


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 "Your Name"
7. git config --global ""
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
12. service git-daemon restart


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

%d bloggers like this: