git-check-ref-format
Check if a reference name is acceptable, and exit with a non-zero status if it is not. tldr-pages
On several platforms
Check if a reference name is acceptable, and exit with a non-zero status if it is not. tldr-pages
On several platforms