diff --git a/git-guards/scripts/git-permission-guard.py b/git-guards/scripts/git-permission-guard.py index 5d326ac..aea1488 100755 --- a/git-guards/scripts/git-permission-guard.py +++ b/git-guards/scripts/git-permission-guard.py @@ -35,7 +35,8 @@ ("push --force-with-lease", "Overwrites remote history"), ("push --force", "Overwrites remote history"), ("push -f", "Overwrites remote history"), - ("worktree remove", "Removes worktree directory"), + ("worktree remove --force", "Removes worktree directory, discarding uncommitted changes"), + ("worktree remove -f", "Removes worktree directory, discarding uncommitted changes"), ("cherry-pick", "Rewrites commit history"), ("merge", "Can create merge commits or conflicts"), ("reset", "Can lose uncommitted work permanently"),