Skip to content

Instantly share code, notes, and snippets.

@scsibug
Created November 7, 2012 02:10
Show Gist options
  • Save scsibug/4029187 to your computer and use it in GitHub Desktop.
Save scsibug/4029187 to your computer and use it in GitHub Desktop.
Git Daemon
# Create a bare repository
mkdir /Users/me/repos/shared.bare.git
cd /Users/me/repos/shared.bare.git
git init --bare
# Start the git daemon
git daemon --reuseaddr --enable=receive-pack --enable=upload-archive --verbose --export-all --base-path=/Users/me/repos
# On the remote machine, push master over
git push git://192.168.1.100/shared.bare.git master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment