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
This may be a duplicate answer but below tested and worked for me perfectly.
git branch -D branch-name
git push origin --delete branch-name
git branch -D branch-name1 branch-name2
git push origin --delete branch-name1 branch-name2
git branch -D $(git branch --list 'feature/*')
git branch -D backticks $(git branch --list 'feature/*' backticks)
git branch -r | grep -Eo 'feature/.*'
git branch -r | grep -Eo 'feature/.*' | xargs -I {} git push origin :{}