Created
March 13, 2017 17:02
-
-
Save drkmullins/64dcc81d83128cd23c1699b6e46cbcc2 to your computer and use it in GitHub Desktop.
Deletes local branches that no longer exist on the remote
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
git fetch -p && git branch -vv | gawk "/: gone]/{print $1}" | xargs git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment