Skip to content

Repository Settings -> Default initial branch name

The page currently says

Changes affect new repositories only. If not specified, either the configured application-wide default or Git's default name master will be used.

But it seems you're actually setting main as default branch, unless I specify the setting in this page.