Last active
November 18, 2020 23:52
-
-
Save accidentallyc/4d59b914d33c4fba54e91f746bf38fda to your computer and use it in GitHub Desktop.
Git Remove Local Branches without remotes spell
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
# For squashed merged commits (with remotes deleted) | |
git branch -vv | grep ": gone]" | grep -v "*" | awk '{print $1}' | xargs git branch -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment