Skip to content

Instantly share code, notes, and snippets.

@akheron
Created May 2, 2012 10:50
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save akheron/2575827 to your computer and use it in GitHub Desktop.
Save akheron/2575827 to your computer and use it in GitHub Desktop.
git config for detached worktree
# Create the repository with "git init --bare", then edit config to match this:
[core]
repositoryformatversion = 0
filemode = true
bare = false
worktree = /path/to/worktree
[receive]
denycurrentbranch = ignore
#!/bin/sh
git checkout -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment