Git-daemon

From Attie's Wiki
Jump to: navigation, search

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!

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox