참조 이름이 적절한지 확인하고, 그렇지 않으면 0이 아닌 상태로 종료. 더 많은 정보: 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}}