Git Revision Control - Display Metadata | Online Free DevTools by Hexmos

Control Git revisions instantly with Git Rev-Parse. Display commit hashes, branch names, and repository paths. Free online tool, no registration required.

git rev-parse

Display metadata related to revisions. More information: https://git-scm.com/docs/git-rev-parse.

  • Get the commit hash of a branch:

git rev-parse {{branch_name}}

  • Get the current branch name:

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

  • Get the absolute path to the root directory:

git rev-parse --show-toplevel