git worktree broke after I deleted the branch, how do I clean up
Git 2.41. I used git worktree add ../hotfix fix/bug to work on a hotfix. Merged it and deleted the branch with git branch -d fix/bug. Now git worktree list still shows the entry and git worktree prune doesn't remove it. The directory is still there. What's the proper cleanup order here? I feel like I did things backwards. The working directory is still there with all my changes committed, so nothing appears lost — but git won't let me add a new worktree at that path either.
4 replies