When you run git branch
command without providing the branch name, it lists all the branches.
$git branch * testing master production
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
.