Skip to content

feat(dev): add --force flag to dev clean command#414

Merged
basnijholt merged 3 commits intomainfrom
bn/dev-clean-force
Feb 5, 2026
Merged

feat(dev): add --force flag to dev clean command#414
basnijholt merged 3 commits intomainfrom
bn/dev-clean-force

Conversation

@basnijholt
Copy link
Owner

@basnijholt basnijholt commented Feb 5, 2026

Summary

  • Add --force/-f flag to dev clean that gets passed through to git worktree remove --force
  • Allows removing worktrees that contain modified or untracked files
  • Applies to both --merged and --no-commits modes

Test plan

  • All 950 tests pass
  • Pre-commit hooks pass
  • ag dev clean --no-commits --force removes worktrees with local changes

basnijholt and others added 3 commits February 5, 2026 14:42
Worktrees with modified or untracked files fail to remove with the
default `git worktree remove`. Pass --force/-f to force removal.
@basnijholt basnijholt merged commit 275e545 into main Feb 5, 2026
1 check was pending
@basnijholt basnijholt deleted the bn/dev-clean-force branch February 5, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant