Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:41:01 +08:00
commit 3b4f3145ad
13 changed files with 299 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
---
argument-hint: worktree paths
description: Remove git worktrees safely
---
🧹 Remove the following worktrees, as long it is possible to do so without using the `--force` flag.
$ARGUMENTS
- Don't bother checking if the repo has changes with `git -C <worktree> status --porcelain`
- Don't bother checking for unpushed commits with `git -C <worktree> log`
Just run `git worktree remove <worktree>` and git will exit with an error code if it's not safe to do so and if `--force` is correctly ommitted.