re: Setting up multiple GitHub accounts, the nicer way VIEW POST

VIEW FULL DISCUSSION
 

Hi Arnelle,

Thank's for this tip !

Is it possible to do something like this :

[includeIf "gitdir:C:/USER/Documents/Programming/*/School/*"]

Thank's again !

 

From documentation I would say, no. ( git-scm.com/docs/git-config#Docume... ).

But I just checked it in WSL and it looks to work.

Correction. Iput:
[includeIf "gitdir:~/work/*/ome"]
[user]
email = "work@email.com"

And it matched
~/work/test

So it seems to match to much.or just ignores everything after a wildcard.

I would suggest using symlinks, but I see that you are using windows.

 

@yafkari : it looks like it matches to much. Please read comment above.

Maybe if you are constrained to windows try using WSL and then symlinks there. (but works with Windows 10 only :( ).

code of conduct - report abuse