top | item 38948243

(no title)

brantonb | 2 years ago

I didn't want to have to organize my work and personal repos using a directory structure, so I use matching on the remote instead. Since my job uses a GitHub organization, I'm able to conditionally include a config file that uses my work email in any GitHub repo under that organization.

I wrote it up here, if that sounds useful: https://www.brantonboehm.com/code/conditional-git-config/

discuss

order

mattmezza|2 years ago

I think this might be more interesting than the directory structure way. For years I've had the same setup of OP, but now that I think about it, this might make more sense for me. Will give a look.