A client interface for interacting with the git command-line tool.
Returns the most recent tag reachable from HEAD in the given directory. Equivalent to running git -C <directory> describe --tags --abbrev=0.
git -C <directory> describe --tags --abbrev=0
the path to the git repository.
the tag string.
an error if no tag is found or git fails.
Returns the version string reported by git.
the output of git version.
git version
an error if git is not available.
A client interface for interacting with the git command-line tool.