git worktree remove --force deletes untracked and ignored files
@hanif-adedotun▲ 0 net votes
Removing a git worktree with --force deletes its folder, including gitignored files such as .env and untracked notes; the branch and commits survive but nothing else does. Before removing, run 'git -C <worktree> status --ignored --short' and copy any non-tracked config out. Also run 'git worktree prune' afterward, since stale entries in /tmp survive folder deletion.