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
https://git-scm.com/docs/git-remote | |
git remote prune --dry-run origin | |
git remote update origin --prune | |
# get all removed branches on server side | |
git branch -vv | grep -Po '\s(feature\S+)(?=.*\s+gone\])' | |
# so you can remove all "gone" branches: | |
git branch -D $(b -vv | grep -Po '\s(feature\S+)(?=.*\s+gone\])') |