When you create a new repository and run git branch, it exits silently. For example:
git branch
$ mkdir /tmp/foo; cd /tmp/foo; git init Initialized empty G
Yes, you first need to perform
$ git add . $ git commit -m 'first commit'
commands.