Documentation
README
Claude Command: Git Rollback
目的:安全、可视地将指定分支回滚到旧版本。
默认处于 只读预览 (--dry-run);真正执行需加 --yes 或在交互中确认。
Usage
# 纯交互:列出分支 → 选分支 → 列最近 20 个版本 → 选目标 → 选择 reset 或 revert → 二次确认
/git-rollback
# 指定分支,其他交互
/git-rollback --branch feature/calculator
# 指定分支与目标 commit,并用 hard‑reset 一键执行(危险)
/git-rollback --branch main --target 1a2b3c4d --mode reset --yes
# 只想生成 revert 提交(非破坏式回滚),预览即可
/git-rollback --branch release/v2.1 --target v2.0.5 --mode revert --dry-run
Options
This is the opening of the README. Read the full README on GitHub.