Git Cleanup
git branch --merged| egrep -v "(^\*|main)" | xargs git branch -d
Delete all merged git branches
Though I'm still confused as to why there isn't an easier, single command to do this. Isn't git fetch --prune
supposed to do this?
https://stackoverflow.com/questions/6127328/how-do-i-delete-all-git-branches-which-have-been-merged