Hacker News new | ask | show | jobs
by geongeorgek 2051 days ago
Author here! I'm a freelancer working for multiple agencies at the moment. And One of the requirements was that I use the agency email for all commits.

So I made this as a sugar for git config user.email whatever@gmail.com

2 comments

https://git-scm.com/docs/git-config#_conditional_includes

Is a lot easier then what you came up with.

Thanks. This is perfect but I also like the convenience of a quick switcher for any folder.
I find that creating a separate user account on my system for each client works much better for this kind of thing than trying to configure every application with multiple identities.
More isolation, less accidents. I use this way too.