Git init creates a repo without any commits. Since a branch is a pointer to a commit, you can't have branches until you commit something.