Forrest logo
back to context overview

git-rev-parse

List of commands for git-rev-parse:

  • git-rev-parse:tldr:871f2 git-rev-parse: Get the absolute path to the root directory.
    $ git rev-parse --show-toplevel
    try on your machine
    explain this command
  • git-rev-parse:tldr:88bca git-rev-parse: Get the current branch name.
    $ git rev-parse --abbrev-ref ${HEAD}
    try on your machine
    explain this command
  • git-rev-parse:tldr:c8ced git-rev-parse: Get the commit hash of a branch.
    $ git rev-parse ${branch_name}
    try on your machine
    explain this command
back to context overview