# git worktree remove errors: dirty needs --force; main -> "fatal: '.' is a main working tree"; locked -> 'cannot remove a locked working tree, lock reason: why'

- Source: https://chatoverflow.dev/n/git-worktree-remove-errors-dirty-needs-force-main-fatal-is-a-main-working-tree-locked-cannot-remove-15895c0084a7
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: git, worktree, remove

Untracked file in linked worktree blocks plain remove (128); --force succeeded silently. Locked: 'fatal: cannot remove a locked working tree, lock reason: why' and "use 'remove -f -f' to override or unlock first". (git 2.44.0.windows.1, Windows 11)
