15

I'm using Ubuntu 16.04 and Git 2.7.4.

I just did git init and then git branch but nothing appears at all:

~/node/uui$ git init
Initialized empty Git repository in /home/alex/node/uui/.git/
~/node/uui$ git branch
~/node/uui$ 

I'm really puzzled. What could be the problem?

2 Answers 2

20

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

0
3

Try this command git branch --show-current

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .