git branch not showing branches in terminal?

Solution 1:

You need to make at least one commit before you can see the master branch listed by the git branch command.

Solution 2:

Try this command git branch --show-current