Rename variable containing Git command parameters
Return the exit code of the last failing `git` command
Avoid changing directory to run `git` commands