How do I batch delete redundant remote git branches?
git
Solution
git branch -r | grep guy/ | xargs git branch -d
(Assuming the `$` signs aren't actually part of your output...)
Problem
I have a relatively large collection of remote branches from an old remote repo: ``` $ git branch -r guy/feat1 guy/feat2 guy/feat3 guy/feat4 guy/feat5 guy/feat6 guy/feat7 guy/feat8 origin/HEAD origin/master ``` Is there one command that would remove all `guy` branches? The repo no longer has `guy` as a remote repo.