I have a team member who inadvertently pushed over 150 of his local branches to our central repo. Thankfully, they all have the same prefix. Using that prefix, is there a gi
I was not able to use awk because we are using a slash structure for our branches' name.
git branch -r | grep "origin/users/YOURNAME" | sed -r 's/^.{9}//'| xargs -i sh -c 'git push origin --delete {}'
This get all remote branch, get only the one for a single user, remote the "origin/" string and execute a delete on each of them.