How to list branches in Git?

When you run git branch command without providing the branch name, it lists all the branches.

$git branch
* testing

The currently checked out branch is shown with a star in front of it. From the output, you can see that the active branch is testing.