-
Notifications
You must be signed in to change notification settings - Fork 1
Git daemon configuration
zayac edited this page May 4, 2011
·
1 revision
This will allow url's like "git clone git://localhost/my_repository.git". Do know that this git:// protocol is read only!
-
Edit configuration file for git-dameon /etc/conf.d/git-daemon.conf (GIT_REPO is a place with your git projects).
# path to git repositories served GIT_REPO="/home/github/" # see `man git-daemon` for all available options GIT_DAEMON_ARGS="--detach --syslog --verbose --base-path=$GIT_REPO"
-
Then start git-daemon with root privileges:
/etc/rc.d/git-daemon start
-
To run the git-daemon every time at boot, just append git-deamon to DAEMONS line in /etc/rc.conf file. Clients can now simply use:
git clone git://maxwell/testrepo.git