config: write to $XDG_CONFIG_HOME/git/config file when appropriate