Managing Shared Git Hooks Across Multiple Worktrees
Hook scripts must use `git rev-parse --git-common-dir` to work correctly across all worktrees.
Naomi Whitfield
Contributing Editor
Naomi Whitfield is a contributing editor at Beyond Git Worktree covering git worktrees. Based in Chicago, Naomi has written for Beyond Git Worktree since 2017.
1 story · Chicago
Hook scripts must use `git rev-parse --git-common-dir` to work correctly across all worktrees.