git-squish

Crates.iogit-squish
lib.rsgit-squish
version0.1.4
created_at2025-08-14 19:56:36.954209+00
updated_at2025-08-15 01:34:06.265752+00
descriptionA simply git addon which will perform a non-interactive rebase and squash the branch history into a single commit.
homepage
repositoryhttps://github.com/ncipollo/git-squish
max_upload_size
id1795581
size52,265
Nick Cipollo (ncipollo)

documentation

README

git-squish

A Git utility that squashes commits on a branch into a single commit against an upstream branch.

Installation

Install via Cargo:

cargo install git-squish

Usage

Basic usage:

# Squash current branch onto origin/main
git squish main

# Squash specific branch onto upstream
git squish topic main

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").

GPG Signing Support

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.

Commit count: 0

cargo fmt