For the last 20-30 commits, I've been in detached head state:
> git status
HEAD detached from ac83503
nothing to commit, working tree clean
I initially didn't pay attention that I'm in this state. Now I'd like this detached head to become my main branch, and so I give it a name
> git branch the-good-one
That last command provides no feedback, but it appears it's now all right: git log | head -1 shows:
fc876a2 Tue Mar 7 23:10:14 2017 (HEAD, the-good-one) This is the commit message.
and yet git status still replies with:
HEAD detached from ac83503
nothing to commit, working tree clean
Is assigning a git branch name not sufficient to undo a detached head state?