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 user.email
in git config --list
(same user.name
tho).
I'm wondering if there is a way to properly set the user.email
(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).
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.