News for hackers. Stuff that matters.
Re:Show HN: Switch Git Users CLI by geongeorgek on Thursday November 12, 2020 @08:01AM (#25069371)
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 [email protected]

Re:Show HN: Switch Git Users CLI by Foxboron on Thursday November 12, 2020 @08:54AM (#25069821)
https://git-scm.com/docs/git-config#_conditional_includes

Is a lot easier then what you came up with.

Re:Show HN: Switch Git Users CLI by geongeorgek on Thursday November 12, 2020 @09:18AM (#25070079)
Thanks. This is perfect but I also like the convenience of a quick switcher for any folder.
Re:Show HN: Switch Git Users CLI by JimDabell on Thursday November 12, 2020 @10:19AM (#25070761)
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.
Re:Show HN: Switch Git Users CLI by edoceo on Thursday November 12, 2020 @09:27PM (#25078134)
More isolation, less accidents. I use this way too.