From time to time I clean up all the local branches that have assembled over time in a Git repository.
git branch | grep -v "main" | xargs git branch -D
From time to time I clean up all the local branches that have assembled over time in a Git repository.
git branch | grep -v "main" | xargs git branch -D