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
Notes:
v
to -v
e.g. $ git branch -avv
or $ git branch -vv
will print the name of the upstream branch as well.