Preventing errors in a new repo with no branches or remotes