-
-
Save yarick123/7dc34e4d6738e32529ec3bccea4dd0d7 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