Skip to content

Commit 65c8204

Browse files
authored
Merge pull request #24627 from github/repo-sync
repo sync
2 parents ec2d0b4 + 7a53f83 commit 65c8204

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

content/get-started/using-git/dealing-with-special-characters-in-branch-and-tag-names.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,14 @@ If possible, create branch and tag names that don't contain special characters,
4747
* forward slash (`/`)
4848

4949
To avoid confusion, you should start branch names with a letter.
50+
51+
{% ifversion fpt or ghec or ghes > 3.8 %}
52+
53+
## Restrictions on names in {% data variables.product.prodname_dotcom %}
54+
55+
{% data variables.product.prodname_dotcom %} restricts a small number of branch and tag names from being pushed up.
56+
Those restrictions are:
57+
- 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.
58+
- 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.
59+
60+
{% endif %}

0 commit comments

Comments
 (0)