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)、下划线(_)、点(.)或短横线(-)。

预留的项目名

你不能创建以下名称的项目:

  • \-
  • badges
  • blame
  • blob
  • builds
  • commits
  • create
  • create_dir
  • edit
  • environments/folders
  • files
  • find_file
  • gitlab-lfs/objects
  • info/lfs/objects
  • new
  • preview
  • raw
  • refs
  • tree
  • update
  • wikis

预留的组名

你不能创建以下名称的组,因为它们是为顶级组预留的:

  • \-
  • .well-known
  • 404.html
  • 422.html
  • 500.html
  • 502.html
  • 503.html
  • admin
  • api
  • apple-touch-icon.png
  • assets
  • dashboard
  • deploy.html
  • explore
  • favicon.ico
  • favicon.png
  • files
  • groups
  • health_check
  • help
  • import
  • jwt
  • login
  • oauth
  • profile
  • projects
  • public
  • robots.txt
  • s
  • search
  • sitemap
  • sitemap.xml
  • sitemap.xml.gz
  • slash-command-logo.png
  • snippets
  • unsubscribes
  • uploads
  • users
  • v2

你不能创建以下名称的子组:

  • \-