Created
May 2, 2012 10:50
-
-
Save akheron/2575827 to your computer and use it in GitHub Desktop.
git config for detached worktree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git checkout -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment