title: How to automatically change my local git config `user.email` depending on the git repository origin I'm cloning from?
body: <p>I'm working with mainly two types of repositories on my laptop, on one hand, the ones for my projects at work, and the other the ones for oss projects, but they use different <code>user.email</code> in <code>git config --list</code> (same <code>user.name</code> tho).</p>
  <p>I'm wondering if there is a way to properly set the <code>user.email</code> (the one local to the repository) right from the start when I'm cloning a new project, (knowing that the global config is set to my oss projects).</p>
  <p>The reason is that every now and then I forget to manually set the local configuration of my work projects and end up pushing commits signed with the wrong user (ie. the oss one) and then I had to rebase the last N commits or so, which can be quite annoying.</p>