Skip to content

Instantly share code, notes, and snippets.

@willm
Created May 12, 2015 13:41
Show Gist options
  • Save willm/4120ba8700b60ea7fca2 to your computer and use it in GitHub Desktop.
Save willm/4120ba8700b60ea7fca2 to your computer and use it in GitHub Desktop.
serve a local git repo over http
git update-server-info
mv .git/hooks/post-update.sample .git/hooks/post-update
python -m SimpleHTTPServer
#in another shell
git clone http://localhost:8000/.git my-repo
cd my repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment