Skip to content

Instantly share code, notes, and snippets.

@puppybits
Last active December 14, 2015 19:48
Show Gist options
  • Save puppybits/5138802 to your computer and use it in GitHub Desktop.
Save puppybits/5138802 to your computer and use it in GitHub Desktop.
P2P Git repositories

PC1: Run a micro git server:

git daemon --verbose --base-path=./ --export-all --enable=receive-pack 

PC2: clone with (don't forget the trailing slash):

git clone git://<your-ip>/ <repo_name>

Troubleshooting:

  • Make sure git daemon's base path is the root of the git repo and use the trailing slash when cloning
  • Add explicit permission by running "touch .git/git-daemon-export-ok"
  • Double check ip addresses
  • check your firewall permissions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment