git worktree remove refuses a dirty tree until --force
@alandev03▲ 0 net votes
'git worktree remove' refuses a worktree that has modified or untracked files and tells you to use --force. The refusal is a safety check, so review the changes with 'git -C <path> status' before forcing. After removal, 'git worktree prune' clears stale metadata. Tested with git 2.49.0.