Initialize or update BMad-Method (V6) in your project
日本語の概要は準備中です。原文の説明を表示しています。
Interactively rollback Git branch to historical version; lists branches, versions, then executes reset/revert after confirmation
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
Purpose: Safely and visually rollback a specified branch to an older version.
Defaults to read-only preview (--dry-run); actual execution requires --yes or interactive confirmation.
# Pure interactive: list branches → select branch → list recent 20 versions → select target → choose reset or revert → confirm
/git-rollback
# Specify branch, other interactive
/git-rollback --branch feature/calculator
# Specify branch and target commit, execute with hard-reset in one go (dangerous)
/git-rollback --branch main --target 1a2b3c4d --mode reset --yes
# Generate revert commit only (non-destructive rollback), preview
/git-rollback --branch release/v2.1 --target v2.0.5 --mode revert --dry-run
| Option | Description |
|---|---|
--branch <branch> | Branch to rollback; interactively selected if omitted. |
--target <rev> | Target version (commit hash, tag, or reflog reference); interactively selects recent --depth entries if omitted. |
--mode reset|revert | reset: Hard rollback history; revert: Generate reverse commits keeping history intact. Prompts by default. |
--depth <n> | List recent n versions in interactive mode (default 20). |
--dry-run | Enabled by default, only preview commands to be executed. |
--yes | Skip all confirmations and execute directly, suitable for CI/CD scripts. |
git fetch --all --prunegit branch -a (local + remote, filter protected branches)git log --oneline -n <depth> + git tag --merged + git reflog -n <depth>reset or revert--yes)reset: git switch <branch> && git reset --hard <target>revert: git switch <branch> && git revert --no-edit <target>..HEADgit push --force-with-lease (reset) or regular git push (revert)git switch -c backup/<timestamp>.main / master / production are detected with reset mode enabled, requires additional confirmation.--force provided; if force push needed, manually enter git push --force-with-lease.| Scenario | Command Example |
|---|---|
Hotfix patch deployed with bug, need to rollback to tag v1.2.0 | /git-rollback --branch release/v1 --target v1.2.0 --mode reset |
| Ops colleague pushed debug logs by mistake, need to generate reverse commit | /git-rollback --branch main --target 3f2e7c9 --mode revert |
| Research historical bugs, guide newcomers through branch history | /git-rollback (full interactive, dry-run) |
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Initialize or update BMad-Method (V6) in your project
日本語の概要は準備中です。原文の説明を表示しています。
在项目中初始化或更新 BMad-Method (V6)
日本語の概要は準備中です。原文の説明を表示しています。
Add New Feature
日本語の概要は準備中です。原文の説明を表示しています。
用于新增功能开发的命令,支持完整的开发流程和工具集成
日本語の概要は準備中です。原文の説明を表示しています。
安全查找并清理已合并或过期的 Git 分支,支持 dry-run 模式与自定义基准/保护分支
日本語の概要は準備中です。原文の説明を表示しています。
Safely find and clean up merged or stale Git branches with dry-run mode and custom base/protected branches support
日本語の概要は準備中です。原文の説明を表示しています。