Multiple Git Configs Per Directory

The Problem You have a personal GitHub and a work GitLab (or multiple work accounts). Your global ~/.gitconfig has your personal email. You clone a work repo, make a commit, push — and now your personal email is in the company git history. haha-haha classic.. You could run git config user.email in every new repo you clone. But you&rsquo;ll forget. You always forget. But this is a boring routine,…