Git prune remote and local branches

# see what's out there
git remote show origin

# remove the remote branch 'branch-name'
git push origin :branch-name

# see what branches are only on local and no longer tracked
git remote prune origin --dry-run

# run again without --dry-run to actually prune the local branch
git remote prune origin
Snippets and tagged