Skip to content

Instantly share code, notes, and snippets.

@johngrimes
Created March 7, 2018 03:14
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 johngrimes/36aa92cacfa0e16e5af416b4d84db41e to your computer and use it in GitHub Desktop.
Save johngrimes/36aa92cacfa0e16e5af416b4d84db41e to your computer and use it in GitHub Desktop.
Distributed Git FTW

Make a bare repo from a checkout:

git clone --bare /path/to/repo

Then run this in the bare git repo:

touch git-daemon-export-ok

Start git server in current directory:

git daemon --reuseaddr --base-path=`pwd` `pwd`

Then point your friends to port 9418!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment