I’m trying to push a local repository to GitLab. The instructions said to use ‘git init --initial-branch-name=main’, but that apparently isn’t valid syntax. So I have a local branch named master, a remote branch named main and an unhelpful error from git.
So actually the syntax is git init --initial-branch=main
. Going to check out how to rename local branches now. Would be nice to have the option of renaming the initial branch when I create a new project.