Jak usunąć wszystkie oddziały w git lokalnych

git branch | grep -v "main" | xargs git branch -D
Healthy Hyena