You have a work email and a personal email, both configured in git. Git will happily use whichever one is set globally for every commit you make, which is fine until a personal commit goes out stamped with your employer's address.
The usual advice is to run git config user.email … inside each repo and
remember to do it forever. Git can do better: since 2.36 it can pick an
identity based on where a repository points, not where it happens to live on
disk. Clone from github.com, get your personal identity; clone from anywhere