Git-daemon
From Attie's Wiki
(Difference between revisions)
(Created page with "Setting up git-daemon on Ubuntu 12.04 is straight forward: <source lang="bash"> apt-get install git-deamon-sysvinit # give gitdaemon the required privileges sed -re 's#^(GIT_...") |
m |
||
Line 9: | Line 9: | ||
update-rc.d git-daemon enable | update-rc.d git-daemon enable | ||
</source> | </source> | ||
+ | |||
+ | Don't forget to add a <code>git-daemon-export-ok</code> file to any repository that you want to export! |
Latest revision as of 19:38, 30 August 2013
Setting up git-daemon on Ubuntu 12.04 is straight forward:
apt-get install git-deamon-sysvinit # give gitdaemon the required privileges sed -re 's#^(GIT_DAEMON_DIRECTORY)=.*$#\1=/YOUR/GIT/DIR/\nGIT_DAEMON_BASE_PATH=${GIT_DAEMON_DIRECTORY}#' -i /etc/default/git-daemon sed -re 's/^(GIT_DAEMON_ENABLE)=.*$/\1=true/' -i /etc/default/git-daemon /etc/init.d/git-daemon start update-rc.d git-daemon enable
Don't forget to add a git-daemon-export-ok
file to any repository that you want to export!