DEV Community

Discussion on: Maintaining Different Git Identities

Collapse
 
plutov profile image
Alex Pliutau

Nice! Should it be changed?
From:

[includeIf "gitdir:~/Work/"]
path = .gitconfig-work

To:

[includeIf "gitdir:~/Work/"]
path = ~/.gitconfig-work

Collapse
 
maxlmator profile image
Max

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.