Comment supprimer toutes les branches de Git local

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