git rev-parse

Mostra i metadati relativi a specifiche revisioni. Maggiori informazioni: https://git-scm.com/docs/git-rev-parse.

git rev-parse {{nome_ramo}}

git rev-parse --abbrev-ref {{HEAD}}

git rev-parse --show-toplevel