Git-daemon

From Attie's Wiki
Revision as of 19:38, 30 August 2013 by Attie (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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