1
0
mirror of synced 2025-12-22 11:26:57 -05:00

Block ambiguous branch/tag names (#35670)

Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com>
This commit is contained in:
Matt Cooper
2023-03-23 10:07:00 -04:00
committed by GitHub
parent 0731b8b8c8
commit 7a53f83f20

View File

@@ -47,3 +47,14 @@ If possible, create branch and tag names that don't contain special characters,
* forward slash (`/`) * forward slash (`/`)
To avoid confusion, you should start branch names with a letter. To avoid confusion, you should start branch names with a letter.
{% ifversion fpt or ghec or ghes > 3.8 %}
## Restrictions on names in {% data variables.product.prodname_dotcom %}
{% data variables.product.prodname_dotcom %} restricts a small number of branch and tag names from being pushed up.
Those restrictions are:
- No names which look like Git object IDs (40 characters containing only 0-9 and A-F), to prevent confusion with actual Git object IDs.
- No names beginning with `refs/`, to prevent confusion with the full name of Git refs. For more information about refs, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.
{% endif %}