What problem does it solve?
It solves the problem of messy or incorrect Git branch history by enabling safe, non-interactive rewriting of commits that are not at HEAD.
Core Features & Use Cases
- Non-interactive interactive-rebase driving: Automatically controls
git rebase -i editor invocations via GIT_SEQUENCE_EDITOR so the rebase completes without human keyboard input.
- Common history surgery operations: Supports squashing, fixing up, dropping, splitting, rewording, and validating replayed commits with deterministic scripting patterns.
- Safety guardrails for real-world workflows: Encourages backup branches, checks for zombie/paused rebases, and advises explicit diff validation to confirm content wasn’t lost.
Use Case: You discover an earlier commit message is misleading and that a feature was bundled with unrelated changes; you rewrite that commit and split it into cleaner, reviewable commits before pushing.
Quick Start
Use the git-rebase skill to rewrite a branch’s commit history non-interactively by scripting git rebase -i so you can drop, split, and reword commits and validate the result against a pre-rebase backup.