Git provides multiple commands for listing branches. All commands use the function of
git branch, which will provide a list of a certain branches, depending on which options are put on the command line. Git will if possible, indicate the currently selected branch with a star next to it.
|List local branches|
|List local branches verbose|
|List remote and local branches|
|List remote and local branches (verbose)|
|List remote branches|
|List remote branches with latest commit|
|List merged branches|
|List unmerged branches|
|List branches containing commit|
$ git branch -avvor
$ git branch -vvwill print the name of the upstream branch as well.