I have multiple accounts on different public git hostings (github, gitlab, etc) and corporate git hosting.
The problem is that I constantly forget to change my identity:
git config --local user.email "email@example.com"
git config --local user.name "Name"
for each project and my default global configuration (github account) goes into my corporate commits and commits on other git hostings (and even into commit from another account on github) creating a real mess.
Is there any convenient method to stop forgetting to specify account after git clone
?