CmdID / Commands
Display metadata related to revisions. tldr-pages
On several platforms
Opens CmdID with your command. It is read in your browser and sent nowhere.
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