Skip to contents

Retrieve the short git commit hash of the current repository state

Usage

get_git_commit()

Value

Character. Short git commit hash, or "Git hash not available" if retrieval fails

Examples

get_git_commit()
#> [1] "21a9e23"