It's not necessary to specify the full path. The path is relative to the location of the .gitconfig file itself, therefore it works in this case both ways.
But to make it easier to understand, the fullpath is probably a better example.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice! Should it be changed?
From:
[includeIf "gitdir:~/Work/"]
path = .gitconfig-work
To:
[includeIf "gitdir:~/Work/"]
path = ~/.gitconfig-work
It's not necessary to specify the full path. The path is relative to the location of the
.gitconfig
file itself, therefore it works in this case both ways.But to make it easier to understand, the fullpath is probably a better example.