Git supports looking for its configuration in $XDG_CONFIG_HOME/git/config and a global ignore file in $XDG_CONFIG_HOME/git/ignore in recent versions.