Manual:$wgGitBin

Details
Path to the Git binary.

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. If the git binary is not present at the specified location, you will not be able to see git hashes on Special:Version.