Not able to checkout branch even after removing worktree and running worktree prune May 13, 2023 by Tarik I worked around this by erasing .git/worktrees/<branch-name> from the repository directory.