git-squish
A Git utility that squashes commits on a branch into a single commit against an upstream branch.
Installation
Install via Cargo:
Usage
Basic usage:
# Squash current branch onto origin/main
# Squash specific branch onto upstream
Arguments
- [branch-refname]- Optional. The branch to squash (e.g., "refs/heads/feature"). If omitted, uses the current branch.
- <upstream-spec>- Required. The upstream to rebase onto (e.g., "main" or "origin/main").