GitGit: Clean Up Branches Handy snippet to run, to delete all but the current branch: $ git branch | xargs git branch -D $ git remote prune origin Standard