git-squash
Installation
SKILL.md
Git Squash
Squash the current PR branch into one commit based on net branch changes relative to the default branch. Do not create or invoke a helper script. Run the Git commands directly.
Arguments
Parse $ARGUMENTS for optional flags:
--subject <line>: Override the generated commit subject line--base <branch>: Override default-branch auto-detection
Defaults:
- Subject: infer a conventional-commit subject from the squashed changes themselves; do not default to
chore - Base detection order:
refs/remotes/origin/HEADgit remote show originmain,master,trunk