Created
May 7, 2021 10:05
-
-
Save devmuffy/b1e255f55fc8c886e587ebfd4bb5e396 to your computer and use it in GitHub Desktop.
Remove gone branches
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 branch -vv | grep ': gone' | awk '{print $1}' >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -D </tmp/merged-branches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment