If you use the same computer for both personal and work git repositories, you probably want to use a different email address for each.
One solution for this is having multiple .gitconfig
files that override each other based on the directory you’re in.
[includeIf "gitdir:~/Developer/work/"]
path = .gitconfig-work