| Crates.io | git-squish |
| lib.rs | git-squish |
| version | 0.1.4 |
| created_at | 2025-08-14 19:56:36.954209+00 |
| updated_at | 2025-08-15 01:34:06.265752+00 |
| description | A simply git addon which will perform a non-interactive rebase and squash the branch history into a single commit. |
| homepage | |
| repository | https://github.com/ncipollo/git-squish |
| max_upload_size | |
| id | 1795581 |
| size | 52,265 |
A Git utility that squashes commits on a branch into a single commit against an upstream branch.
Install via Cargo:
cargo install git-squish
Basic usage:
# Squash current branch onto origin/main
git squish main
# Squash specific branch onto upstream
git squish topic main
[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").git-squish will respect your existing Git GPG signing configuration. If you have GPG signing enabled in your Git config, the squashed commit will be signed automatically.