Why does the first branch name pushed to remote in GitLab become the default branch? Is that why GitLab instructs to push an empty README.md file to master when working with a new repository? Or is it supposed to work like that?
Asked
Active
Viewed 71 times
1 Answers
1
Here is sort of a general information on how to set up your default branch with GitLab
1. Click "Settings" in the left-hand bar 2. Change the default branch to the desired branch 3. Click "Save Changes"
This should change the default branch.

e.doroskevic
- 2,129
- 18
- 25
-
This works in In 8.0+ https://stackoverflow.com/questions/30987216/change-default-branch-in-gitlab – Kalpa Gunarathna Oct 19 '17 at 10:03