Goal
Install a git server on Debian. We will only install a simple GIT daemon, without authentification.If you need authentification you will have to use an external mechanism:
- Apache + LDAP/MySQL and access the repositories with the "http://" schema
- SSH + the system authentication tool and access the repositories with the "ssh://" schema
Xinetd configuration
in /etc/xinetd.d/git-daemon:# default: on # description: The git server offers access to git repositories service git { disable = no type = UNLISTED port = 9418 socket_type = stream wait = no user = git server = /usr/bin/git-daemon server_args = --inetd --export-all --verbose --enable=receive-pack --reuseaddr --base-path=/home/git/ log_on_failure += USERID }
/home/git
From the git-daemon setting above, the repositories will be in /home/git/Using it
If there is a project in /home/git/test-project.git, with the above setting you will clone the project with:git clone git://git.rktmb.org/test-project.git