LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-delete-squashed-branches

Remove branches that were squash-merged

TLDR

Delete squash-merged branches
$ git delete-squashed-branches
copy

SYNOPSIS

git delete-squashed-branches

DESCRIPTION

git delete-squashed-branches deletes local branches that have been squash-merged into the current branch. Part of git-extras, it detects branches whose commits were combined and merged as a single squash commit, which Git's standard --merged flag cannot identify.Squash merging creates a new commit combining all branch changes, leaving the original branch commits technically unmerged. This causes branch accumulation since git branch --merged won't flag them for deletion. The command uses tree comparison heuristics to detect when a branch's changes exist in the target branch despite differing commit history.Particularly useful for workflows on GitHub and GitLab where squash merging is the default merge strategy.

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid