Last active
October 31, 2023 18:15
-
-
Save akramarev/2f99211a99929fce4f27fc38d3745128 to your computer and use it in GitHub Desktop.
[Git Tip: Deleting Old Local Branches] http://erikaybar.name/git-deleting-old-local-branches/
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 remote prune origin | |
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
that URL does not work so, URL from archive.
https://web.archive.org/web/20190408063416/http://erikaybar.name/git-deleting-old-local-branches/