Skip to content

Instantly share code, notes, and snippets.

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\])')