Skip to content

Instantly share code, notes, and snippets.

@bmingles
Last active November 9, 2022 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmingles/6de8a2590a0be3390c43820b731b9abc to your computer and use it in GitHub Desktop.
Save bmingles/6de8a2590a0be3390c43820b731b9abc to your computer and use it in GitHub Desktop.
Git Worktree
git clone --bare <repo_url> .bare
echo "gitdir: ./.bare" > .git
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment