I’ve cloned the Wiki repo for a project, and tried to rename the master branch as main, but when I push to the origin, GitLab returns an error:
git push origin --delete master
remote: error: By default, deleting the current branch is denied, because the next
remote: 'git clone' won't result in any file checked out, causing confusion.
Is there a way to set the current branch of the Wiki repo?