git-rebase-squash

Installation
SKILL.md

Git Rebase & Squash (Non-Interactive)

Clean up git commit history by squashing and reorganizing commits using a file-based rebase workflow.

Critical Constraints

DO NOT use git rebase -i directly—it requires interactive terminal input and will hang or fail in automated environments.

ALWAYS use GIT_SEQUENCE_EDITOR with a pre-written rebase plan file.

Workflow

1. Commit All Changes First

If there are unstaged changes that are part of the cleanup:

# Commit them first - DO NOT stash
git add <files>
Related skills
Installs
1
First Seen
Mar 30, 2026