Git Daemon:
Git daemon allows users to share the own repository to colleagues quickly. Git instaweb allows users to provide web view to the repository.
Git protocol is relatively easy to set up. Basically, you need to run this command in a daemonized manner:
git daemon --reuseaddr --base-path=/opt/git/ /opt/git/
--reuseaddr allows the server to restart without waiting for old connections to time out, the --base-path option allows people to clone projects without specifying the entire path, and the path at the end tells the Git daemon where to look for repositories to export. If you’re running a firewall, you also need to punch a hole in it at port 9418 on the box you’re setting this up on.
/etc/event.d/local-git-daemon
script:
start on startup
stop on shutdown
exec /usr/bin/git daemon \
--user=git --group=git \
--reuseaddr \
--base-path=/opt/git/ \
/opt/git/
respawn
Git daemon allows users to share the own repository to colleagues quickly. Git instaweb allows users to provide web view to the repository.
Git protocol is relatively easy to set up. Basically, you need to run this command in a daemonized manner:
git daemon --reuseaddr --base-path=/opt/git/ /opt/git/
--reuseaddr allows the server to restart without waiting for old connections to time out, the --base-path option allows people to clone projects without specifying the entire path, and the path at the end tells the Git daemon where to look for repositories to export. If you’re running a firewall, you also need to punch a hole in it at port 9418 on the box you’re setting this up on.
/etc/event.d/local-git-daemon
script:
start on startup
stop on shutdown
exec /usr/bin/git daemon \
--user=git --group=git \
--reuseaddr \
--base-path=/opt/git/ \
/opt/git/
respawn
No comments:
Post a Comment