git get list of all branches and commits code example Example: how to see all branches in git git branch -a