$HOME/.gitconfig
[includeIf "gitdir:~/personal/"]
path = ~/.gitconfig-personal
[includeIf "gitdir:~/work/"]
path = ~/.gitconfig-work
$HOME/.gitconfig-work
[user]
name = work_user
email = work_email
$HOME/.gitconfig-personal
[user]
name = personal_user
email = personal_email