Using gitbash, you can export the variable on the ~/.bashrc
file:
But for some reason export XDG_CONFIG_HOME="~/.config"
doesn't work on windows.
I've had to use the explicit path export XDG_CONFIG_HOME="C:\Users\YOURUSERNAME\.config"
This is using version 0.9.5, so this might be fixed on newer versions.