> On Sun, Mar 15, 2015 at 6:37 PM, Robert Dailey
> wrote:
>> My understanding is that git reads the priority of configuration as follows:
>>
>> 1. /.git/config
>> 2. $HOME/.gitconfig
>> 3. $XDG_CONFIG_HOME/git/config
$HOME/.gitconfig is the traditional Unix location for config files. It
was the
Sorry for the continuous updates... it seems I spoke too soon. This
works until you CD into a repository, then none of the settings are
accessible. So yeah, basically I need to make sure I'm using this as
intended... I still don't understand the purpose of the XDG thing.
On Sun, Mar 15, 2015 at 6:
As a follow-up, I tested the following in my .bashrc:
# Utilize different GIT settings based on platform
if [[ $OSTYPE == 'msys' || $OSTYPE == 'cygwin' ]]; then
echo 'Using WINDOWS specific git settings'
export XDG_CONFIG_HOME=.config-windows
else
echo 'Using LINUX specific git settin
My understanding is that git reads the priority of configuration as follows:
1. /.git/config
2. $HOME/.gitconfig
3. $XDG_CONFIG_HOME/git/config
4. system level git config (not sure exactly where this is; not
relevant to me on Windows)
I have a .gitconfig in Dropbox that I symlink to my home direc
4 matches
Mail list logo