Last active
September 6, 2021 16:23
-
-
Save ahoendgen/6f6857f94adf16a215713a8376583e00 to your computer and use it in GitHub Desktop.
Git - Remove merged branches locally
This file contains 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
git checkout main && git fetch --all --prune && git branch --merged | egrep -v "(^\*|master|main|develop)" | xargs git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment