On 22/11/04 02:32AM, Ævar Arnfjörð Bjarmason wrote: > > Won't we now start to run the post-checkout when doing this, and is that > intended? It appears it will. `git worktree add` runs the hook manually later after the `done` label so I can suppress the initial hook run in v2. Is there a sanctioned way to do this beyond `-c core.hooksPath=/dev/null`? This seems hacky to put it lightly. Alternatively would `git symbolic-ref HEAD "refs/heads/${new_branch_name}"` work instead (along with reverting the change from reset to checkout) when creating an orphan branch? It appears to work based on my quick tests but there's something I might be missing.