Notes to my future self
When creating a git repositiory locally using
git-init, do yourself a favor and commit to the
master branch first before getting fancy and creating and switching to a new branch. Else, all hell will break loose and you'll lose the
master branch which will make you very sad and confused.
Turns out, when you initialize a repository there aren't actually any branches; the
master you think you are happily on is just an illusion. Only when you
commit is when the
master branch will be officially created.