# git-trim

By Saurabh Kumar · TIL note, Feb 20, 2026 · Tags: shell

Source: https://saurabh-kumar.com/til/1771588800/

`brew install git-trim` [git-trim](https://github.com/foriequal0/git-trim) - A dedicated binary for
safely deleting merged branches. Handles edge cases better than bash one-liners, including squash-merged branches. [#](https://news.ycombinator.com/item?id=47089533)
