Here are some useful Git snippets
Get a count number of the number of branches for a repository.
--all flag to get both local and remote branches
git branch --all | wc -l
List all branches not merged into another branch, i.e. main
git branch --no-merged main