Update .gitconfig installation to use a git command instead of editing local file.
Avoid having a non-zero return code.
Ensure local git installation is used.