Forked from ParikshitChavan/local stale branch delete
Created
February 8, 2023 13:16
-
-
Save Ryman/74bfb168d8e95926be4ed211930967ac to your computer and use it in GitHub Desktop.
delete all local local branches which have been deleted from 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 | awk '/: 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