Help us learn about your current experience with the documentation. Take the survey.
预留的项目和组名
- Tier: Free, Premium, Ultimate
- Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated
为了避免与 GitLab 已使用的路由冲突,某些词语不能用作项目或组名。
这些词语列在
path_regex.rb 文件 中,
其中:
TOP_LEVEL_ROUTES是预留作为用户名或顶级组的名称。PROJECT_WILDCARD_ROUTES是预留作为子组或项目的名称。GROUP_ROUTES是预留作为所有组或项目的名称。
用户名、项目和组名以及 slug 的规则
- 用户名必须以字母(
a-zA-Z)或数字(0-9)开头和结尾。此外:- 用户名和组名只能包含字母(
a-zA-Z)、数字(0-9)、表情符号、下划线(_)、点(.)、括号(())、短横线(-)或空格。 - 项目名只能包含字母(
a-zA-Z)、数字(0-9)、表情符号、下划线(_)、点(.)、加号(+)、短横线(-)或空格。
- 用户名和组名只能包含字母(
- 用户名和项目或组的 slug:
- 必须以字母(
a-zA-Z)或数字(0-9)开头和结尾。 - 不能包含连续的特殊字符。
- 不能以
.git或.atom结尾。 - 只能包含字母(
a-zA-Z)、数字(0-9)、下划线(_)、点(.)或短横线(-)。
- 必须以字母(
预留的项目名
你不能创建以下名称的项目:
\-badgesblameblobbuildscommitscreatecreate_direditenvironments/foldersfilesfind_filegitlab-lfs/objectsinfo/lfs/objectsnewpreviewrawrefstreeupdatewikis
预留的组名
你不能创建以下名称的组,因为它们是为顶级组预留的:
\-.well-known404.html422.html500.html502.html503.htmladminapiapple-touch-icon.pngassetsdashboarddeploy.htmlexplorefavicon.icofavicon.pngfilesgroupshealth_checkhelpimportjwtloginoauthprofileprojectspublicrobots.txtssearchsitemapsitemap.xmlsitemap.xml.gzslash-command-logo.pngsnippetsunsubscribesuploadsusersv2
你不能创建以下名称的子组:
\-