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
e34255bf
Commit
e34255bf
authored
Jul 20, 2021
by
Amy Qualls
Committed by
Craig Norris
Jul 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document wiki default branch behavior
parent
5864a15b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
doc/user/project/repository/branches/default.md
doc/user/project/repository/branches/default.md
+2
-1
doc/user/project/wiki/index.md
doc/user/project/wiki/index.md
+15
-0
No files found.
doc/user/project/repository/branches/default.md
View file @
e34255bf
...
...
@@ -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
)
:
1.
Sign in to GitLab as a user with
[
Administrator
](
../../../permissions.md
)
permissions
.
1.
Sign in to GitLab as a user with
the
[
Administrator
](
../../../permissions.md
)
role
.
1.
In the left navigation menu, go to
**Settings > Repository**
.
1.
Expand
**Default branch**
, and select a new default branch.
1.
(Optional) Select the
**Auto-close referenced issues on default branch**
check box to close
...
...
@@ -168,6 +168,7 @@ current default branch, instead of displaying the "not found" page.
## Resources
-
[
Configure a default branch for your wiki
](
../../wiki/index.md
)
-
[
Discussion of default branch renaming
](
https://lore.kernel.org/git/pull.656.v4.git.1593009996.gitgitgadget@gmail.com/
)
on the Git mailing list
-
[
March 2021 blog post: The new Git default branch name
](
https://about.gitlab.com/blog/2021/03/10/new-git-default-branch-name/
)
...
...
doc/user/project/wiki/index.md
View file @
e34255bf
...
...
@@ -29,6 +29,21 @@ with sibling pages listed in alphabetical order. To view a list of all pages, se
![
Wiki sidebar
](
img/wiki_sidebar_v13_5.png
)
## Configure a default branch for your wiki
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/221159) in GitLab 14.1.
The default branch for your wiki repository depends on your version of GitLab:
-
*GitLab versions 14.1 and later:*
Wikis inherit the
[
default branch name
](
../repository/branches/default.md
)
configured for
your instance or group. If no custom value is configured, GitLab uses
`main`
.
-
*GitLab versions 14.0 and earlier:*
GitLab uses
`master`
.
For any version of GitLab, you can
[
rename this default branch
](
../repository/branches/default.md#update-the-default-branch-name-in-your-repository
)
for previously created wikis.
## Create the wiki home page
When a wiki is created, it is empty. On your first visit, create the landing page
...
...
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