git check-ref-format

Cek apakah nama suatu referensi (refname) sesuai syarat, dan keluar dengan nilai status di luar angka nol jika tidak. Informasi lebih lanjut: https://git-scm.com/docs/git-check-ref-format.

git check-ref-format {{refs/head/refname}}

git check-ref-format --branch @{-1}

git check-ref-format --normalize {{refs/head/refname}}