'What names are valid git tags?

I have got a error message while creating tag containing [ character:

fatal: '[' is not a valid tag name.

Question: are there any rules for tags in the git?



Solution 1:[1]

Disallowed characters: '~', '^', ':', '', '?', '[', '*'

Disallowed sequences ".." and "@{"

This symbols/sequences have special meaning to revparse.


Also tag cannot contain " " (whitespace)

source: https://libgit2.org/libgit2/#HEAD/group/tag/git_tag_create

additional information: https://git-scm.com/docs/git-check-ref-format

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andrew____Pls_Support_Ukraine