bash - Delete all local git branches - Stack Overflow

PHOTO EMBED

Thu Feb 02 2023 05:58:48 GMT+0000 (Coordinated Universal Time)

Saved by @Gimnath #sh

git branch | grep -v "master" | xargs git branch -D
content_copyCOPY

https://stackoverflow.com/questions/10610327/delete-all-local-git-branches