List branches merged into main

Bash

Finds the branches that are safe to delete, and the ones that are not.

git branch --merged main

# Not yet merged -- do not delete these:
git branch --no-merged main

More in Git

Random picks