Last active
March 17, 2020 08:05
-
-
Save Neoglyph/c9b0a1e325b8cb970f268edba578495a to your computer and use it in GitHub Desktop.
Delete branches already merged into current head
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stevenharman.net/git-clean-delete-already-merged-branches | |
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment