Skip to content

Instantly share code, notes, and snippets.

@blalor
Created November 16, 2011 19:30
Show Gist options
  • Save blalor/1371071 to your computer and use it in GitHub Desktop.
Save blalor/1371071 to your computer and use it in GitHub Desktop.
serving a (non-bare) git repo

on your computer

Make a note of your computer's IP address; your_ip.

Record the full path to your working copy, the parent of the .git directory; repo_path.

  1. cd <repo_path>
  2. touch .git/git-daemon-export-ok
  3. git daemon --strict-paths --verbose <repo_path>/.git

on the remote computer

  1. git clone git://<your_ip>/<repo_path>/.git

There is no step 2. You can NEVER push to your computer's repository.

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