The irritating thing about that is that the software git defaults to master, while GitHub defaults to main. I had a lot of confusion a few months back about that.
You can set default branch name for your repositories in settings.
Much more straightforward than in GitLab in my opinion.
Yeah, I know that now but this hit me under time pressure and caused me muh confusion for a while.