Created
August 28, 2020 08:06
-
-
Save liaujianjie/f9f4d410a9b619332df11d37b4f81f60 to your computer and use it in GitHub Desktop.
Prune branches on local and delete their local copy
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
g branch -D $(git remote prune origin | sed -e '1,2d' | sed -e 's/\ \* \[pruned\] origin\///' | paste -sd " " -) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment