Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 538 Bytes

trim.md

File metadata and controls

35 lines (24 loc) · 538 Bytes

git trim

Show branches that don't exist at remote origin anymore.

Sample output

clear-counter  012345678 [gone] fix: Allow user to clear counter value
404-page       9abcdef01 [gone] feat: Add 404 page

Original commands

git remote prune origin
git branch -v | grep gone

Set global alias

git config --global alias.trim '!git remote prune origin && git branch -v | grep gone'

Usage

git trim

Remove global alias

git config --global --unset alias.trim