Skip to content

Instantly share code, notes, and snippets.

@yarick123
Forked from akheron/config
Created April 12, 2018 10:16
Show Gist options
  • Save yarick123/7dc34e4d6738e32529ec3bccea4dd0d7 to your computer and use it in GitHub Desktop.
Save yarick123/7dc34e4d6738e32529ec3bccea4dd0d7 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