What problem does it solve?
Git rebase operations can turn a messy commit history into a clean, linear series, but they also risk irreversible mistakes like unwanted history rewrites or editor hangs in automation.
Core Features & Use Cases
- Interactive rebasing guidance with safety guardrails: Explains when
git rebase -i is appropriate and explicitly warns it is forbidden in automated runtime environments due to editor hangs.
- Non-interactive and scripted rewrite approach: Covers autosquash-based workflows and how to update the rebase todo list via deterministic tooling.
- Practical conflict and rollback principles: Provides clear advice to avoid conflict panic and use
git rebase --abort when things go wrong.
- Use Case: You have a feature branch with several “work-in-progress” commits and want to squash/fix them into a tidy set before opening a Pull Request while ensuring you don’t disrupt teammates who already pulled the branch.
Quick Start
Use the git-rebase skill to plan and execute a safe rebase by instructing the AI: “Help me update my feature branch by rebasing it onto the latest main safely, using autosquash locally and avoiding any interactive steps in automation.”