Daniel Baumann | 74d7dd5 | 2010-10-18 11:53:58 +0200 | [diff] [blame] | 1 | git-daemon-sysvinit for Debian |
| 2 | ------------------------------ |
| 3 | |
| 4 | This package enables a git-daemon service. This allows people to use a |
| 5 | git:// URL to access your repositories. |
| 6 | |
| 7 | After installing this package, the daemon needs to be enabled in |
| 8 | /etc/default/git-daemon by setting: |
| 9 | |
| 10 | GIT_DAEMON_ENABLE=false |
| 11 | |
| 12 | to: |
| 13 | |
| 14 | GIT_DAEMON_ENABLE=true |
| 15 | |
| 16 | After that, the git daemon can be started with: |
| 17 | |
| 18 | # /etc/init.d/git-daemon start |
| 19 | |
Jonathan Nieder | 0b94ee8 | 2013-05-20 00:44:30 -0700 | [diff] [blame^] | 20 | The git daemon by default looks into the directory /var/lib/git/ for |
Daniel Baumann | 74d7dd5 | 2010-10-18 11:53:58 +0200 | [diff] [blame] | 21 | repositories (this is configured in /etc/default/git-daemon). It expects |
| 22 | the repositories' .git subdirectories in that directory, symlinks |
| 23 | pointing to the corresponding subdirectories in the repositories are just |
| 24 | fine, e.g.: |
| 25 | |
Jonathan Nieder | 0b94ee8 | 2013-05-20 00:44:30 -0700 | [diff] [blame^] | 26 | ln -s ~daniel/git/foo/.git /var/lib/git/foo.git |
Daniel Baumann | 74d7dd5 | 2010-10-18 11:53:58 +0200 | [diff] [blame] | 27 | |
| 28 | This makes 'git-clone git://git.example.org/git/foo' to clone the foo |
| 29 | repository on remote machines work. |
| 30 | |
| 31 | -- Daniel Baumann <daniel@debian.org> Tue, 19 Oct 2010 00:54:58 +0200 |