My guess is that you're not on a branch named "(no branch)", but rather not on a branch.
If you first checkout master:
git checkout master
and then create a new branch:
git checkout -b new_branch
that would make it look like you'd expect.
My guess is that you're not on a branch named "(no branch)", but rather not on a branch.
If you first checkout master:
git checkout master
and then create a new branch:
git checkout -b new_branch
that would make it look like you'd expect.