Encapsulating git setting into a script.