command
module
Version:
v1.1.2
Opens a new window with list of versions in this module.
Published: Oct 5, 2025
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
git-squash
A simple CLI tool to squash multiple Git commits into a single commit.
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
- Lists squashable commits (not pushed yet).
- Lets you select the starting commit interactively (or via
--hash
).
- Performs a
git reset --soft
and commits the changes with your message.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.