Skip to content

Missing documentation for repository name limits #44518

@TripleCamera

Description

@TripleCamera

Code of Conduct

What article on docs.github.com is affected?

Repository limits

What part(s) of the article would you like to see updated?

This page lacks limits for repository names.

Limits I have discovered:

  • Maximum length: 100 characters. For names that are too long, GitHub displays an error message: "Name cannot be more than 100 characters" (This is already documented at Creating a new repository, but it would be better to document all the limits at one place.)
  • Allowed characters: ASCII letters, digits, and the characters ., -, and _. For names containing non-ASCII characters, GitHub converts all non-ASCII characters to -, and displays a hint: "Your new repository will be created as SANITIZED_REPO. The repository name can only contain ASCII letters, digits, and the characters ., -, and _."
  • Repository names must not end with .git. If the repository name ends with .git, GitHub displays a hint "The .git extension will be removed." and automatically removes the suffix.
  • Repository names must not end with .wiki. If the repository name ends with .wiki, GitHub displays an error message: "The repository REPO cannot end in .wiki" and refuses to create it.

There may be more.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamtriageDo not begin working on this issue until triaged by the team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions