git-squish 0.1.2

A simply git addon which will perform a non-interactive rebase and squash the branch history into a single commit.
Documentation

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