Skip to content

Commit b72d0a2

Browse files
committed
docs: add repository name limits
1 parent d820c86 commit b72d0a2

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

content/repositories/creating-and-managing-repositories/repository-limits.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@ Certain types of repository resources can be quite large, requiring excessive pr
1515
1616
Most of the limits below affect both {% data variables.product.github %} and the API.
1717

18+
## Repository name
19+
20+
Repository names must follow these rules:
21+
22+
* **Maximum length**: 100 characters. Names exceeding this limit are rejected with the error message: "Name cannot be more than 100 characters."
23+
24+
* **Allowed characters**: ASCII letters, digits, and the characters `.`, `-`, and `_`. If a name contains non-ASCII characters, {% data variables.product.github %} automatically converts them to `-` and creates the repository with the sanitized name.
25+
26+
* **Reserved suffixes**:
27+
* Names ending in `.git` have the suffix automatically removed.
28+
* Names ending in `.wiki` are not allowed, because {% data variables.product.github %} reserves this suffix for the repository wiki.
29+
30+
For more information on creating a repository, see [AUTOTITLE](/repositories/creating-and-managing-repositories/creating-a-new-repository).
31+
1832
## Repository size
1933

2034
To ensure optimal performance and manageability, we recommend staying within the following maximum limits for repository structure and size.

0 commit comments

Comments
 (0)