Runs a Git command and returns its standard output as trimmed text.
The Git arguments.
Options for running the command.
The standard output as UTF-8 text without leading and trailing whitespace.
if Git cannot be started, exits with a non-zero code, or exceeds maxBuffer.
maxBuffer
Runs a Git command and returns its standard output as trimmed text.