Skip to content

Instantly share code, notes, and snippets.

@craigmayhew
Last active February 23, 2018 23:37
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 craigmayhew/d666b8ab99745156b4506574ca949cc5 to your computer and use it in GitHub Desktop.
Save craigmayhew/d666b8ab99745156b4506574ca949cc5 to your computer and use it in GitHub Desktop.
Remember, git is peer-to-peer

Enable public access to your local repo

Setup an alias

git config --global alias.serve "daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/"

Run the alias

git serve

From another machine, git fetch or git clone from your ip address or url.

git fetch git://192.168.0.23/

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