0

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?

cshin9
  • 1,440
  • 5
  • 20
  • 33
  • Why _wouldn't_ the first branch pushed become the default branch? At first it's the only one there, and why would the default branch change unless you ask it to? – ChrisGPT was on strike Aug 06 '16 at 13:09

1 Answers1

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