Created
May 16, 2022 07:12
-
-
Save noofreuuuh/64d11e74df64ad889aa2dc3341534791 to your computer and use it in GitHub Desktop.
Clean Local Git Branches That Were Removed 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 | grep 'origin/.*: gone]' | 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