CmdID

CmdID / Commands

git-rev-parse

Display metadata related to revisions. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Get the commit hash of a branch

git rev-parse branch_nameIdentify

Get the current branch name

git rev-parse --abbrev-ref HEADIdentify

Get the absolute path to the root directory

git rev-parse --show-toplevelIdentify