Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dab49da4
Commit
dab49da4
authored
Aug 31, 2021
by
Jonston Chan
Committed by
Amy Qualls
Aug 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: change default branch documentation to state minimum required role
parent
4a3dbc31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/user/project/repository/branches/default.md
doc/user/project/repository/branches/default.md
+4
-4
No files found.
doc/user/project/repository/branches/default.md
View file @
dab49da4
...
@@ -37,7 +37,7 @@ the [Git commands you need](#update-the-default-branch-name-in-your-repository)
...
@@ -37,7 +37,7 @@ the [Git commands you need](#update-the-default-branch-name-in-your-repository)
To update the default branch name for an individual
[
project
](
../../index.md
)
:
To update the default branch name for an individual
[
project
](
../../index.md
)
:
1.
Sign in to GitLab
as a user with the
[
Administrato
r
](
../../../permissions.md
)
role.
1.
Sign in to GitLab
with at least the
[
Maintaine
r
](
../../../permissions.md
)
role.
1.
In the left navigation menu, go to
**Settings > Repository**
.
1.
In the left navigation menu, go to
**Settings > Repository**
.
1.
Expand
**Default branch**
, and select a new default branch.
1.
Expand
**Default branch**
, and select a new default branch.
1.
(Optional) Select the
**Auto-close referenced issues on default branch**
checkbox to close
1.
(Optional) Select the
**Auto-close referenced issues on default branch**
checkbox to close
...
@@ -77,7 +77,7 @@ overrides it.
...
@@ -77,7 +77,7 @@ overrides it.
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/221014) in GitLab 13.6.
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/221014) in GitLab 13.6.
Administrators
of groups and subgroups can configure the default branch name for a group:
Users with at least the Owner role
of groups and subgroups can configure the default branch name for a group:
1.
Go to the group
**Settings > Repository**
.
1.
Go to the group
**Settings > Repository**
.
1.
Expand
**Default initial branch name**
.
1.
Expand
**Default initial branch name**
.
...
@@ -128,8 +128,8 @@ renames a Git repository's (`example`) default branch.
...
@@ -128,8 +128,8 @@ renames a Git repository's (`example`) default branch.
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
```
```
1.
Sign in to GitLab
as an
[
administrator
](
../../../permissions.md
)
and follow
1.
Sign in to GitLab
with at least the
[
Maintainer
](
../../../permissions.md
)
the instructions to
role and follow
the instructions to
[
change the default branch for this project
](
#change-the-default-branch-name-for-a-project
)
.
[
change the default branch for this project
](
#change-the-default-branch-name-for-a-project
)
.
Select
`main`
as your new default branch.
Select
`main`
as your new default branch.
1.
Protect your new
`main`
branch as described in the
[
protected branches documentation
](
../../protected_branches.md
)
.
1.
Protect your new
`main`
branch as described in the
[
protected branches documentation
](
../../protected_branches.md
)
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment