Skip to content

Instantly share code, notes, and snippets.

@danielfone
Created April 11, 2014 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielfone/10460681 to your computer and use it in GitHub Desktop.
Save danielfone/10460681 to your computer and use it in GitHub Desktop.
Git Daemon
#!/bin/bash
source .config
# Setup up master repo
# git clone --bare $TMP_REPO $MASTER_REPO
sudo -u git git daemon \
--verbose \
--enable=receive-pack \
--export-all \
--base-path=$REPO_BASE_PATH
# Now on a remote machine we can simply go:
# git clone git://192.168.178.85/robotwars-arena
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment