git-squash

command module
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 6 Imported by: 0

README

git-squash

A simple CLI tool to squash multiple Git commits into a single commit.

Demo

git-squash demo

Installation

Download pre-compiled binary or

Install with go
go install github.com/andrejsstepanovs/git-squash@latest

Usage

# Interactive mode
git-squash

# Specify commit hash and message directly
git-squash -a <commit-hash> -m "New squashed commit message"

Options:

  • -a, --hash – Optional commit hash to squash from
  • -m, --message – Optional commit message for the squashed commit
  • --max – Auto-select the oldest selectable commit

How it works

  1. Lists squashable commits (not pushed yet).
  2. Lets you select the starting commit interactively (or via --hash).
  3. Performs a git reset --soft and commits the changes with your message.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL