
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-topleveltry on your machineexplain this command
-
git-rev-parse:tldr:88bca git-rev-parse: Get the current branch name.$ git rev-parse --abbrev-ref ${HEAD}try on your machineexplain 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 machineexplain this command