Hacker News new | ask | show | jobs
by lentil 1768 days ago
While this probably doesn’t completely solve your problem, have you tried using conditional includes in your .gitconfig? I’ve been using that to ensure that anything under ~/work uses my work email for user.email, but anything under ~/projects uses my personal email. It’s quite handy.

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

1 comments

Oh wow that is genius! I had no idea this existed, thanks!