Documentation
README
Clean Branches
Remove local branches that have been deleted on the remote (marked [gone]), including any associated git worktrees.
Steps
-
Fetch and prune remote refs:
git fetch --prune -
List branches to identify [gone] status:
git branch -vBranches with a
+prefix have associated worktrees that must be removed before deletion. -
List worktrees for reference:
git worktree list
This is the opening of the README. Read the full README on GitHub.