Manual:$wgGitBin

Details
Path to git binary.

If the git binary is not present at the specified location, you will not be able to see git hashes on Special:Version. This variable is only used if running directly off of a git checkout. Most users do not do this, and hence should not worry if git is unavailable.