DEV Community

loading...

Discussion on: How to use multiple GIT accounts per folder on Linux

Collapse
jmau111 profile image
Julien Maury • Edited

nice trick. I use this approach to distinguish personal and pro folders. It seems there are some caveats in specific cases but it does the job great.

Note that if the pattern ends with /, **, are automatically added:

If the pattern ends with /, ** will be automatically added. For example, the pattern foo/ becomes foo/**. In other words, it matches "foo" and everything inside, recursively

Collapse
tombenevides profile image
Tom Benevides Author

Thanks for that tip =). I don't know why I used the "/ **" syntax, but I think I had some problems when I wrote without it, it didn't work so well. Reading your comment maybe I forgot the "/" and ended up just passing "... /Personal", but I can't remember now.

Collapse
jmau111 profile image
Julien Maury

yes, you need the trailing slash

Forem Open with the Forem app