Created
December 28, 2020 10:54
-
-
Save vikas-0/0c885f61cb96b574cf962a10a5296547 to your computer and use it in GitHub Desktop.
Delete all branches which has been delete remotely
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]'| grep -v "\*" | awk '{ print $1; }' | xargs -r git branch -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment