Updated on 2023-05-06 GMT+08:00

Default Branch

The default branch is the branch selected by default when you enter the current repository and is also the default target branch when you create a merge request.

To manage the default branch, choose Settings > Repository Management > Default Branch on the repository details page.

When a repository is created, the master branch is used as the default branch and can be manually adjusted at any time.

The settings take effect only for the repository configured.

Only the repository administrators and owners can view this tab page and set a default branch.