Created
November 7, 2012 02:10
-
-
Save scsibug/4029187 to your computer and use it in GitHub Desktop.
Git Daemon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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