Created
September 1, 2019 18:03
-
-
Save ultim8k/228d34520f30ac45227a797e09676e03 to your computer and use it in GitHub Desktop.
Deletes local git branches which have been deleted on the remote host
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 && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment