Set a global alias like a bash alias that can set an email address for a project.
alias.homeprofile=config user.email "x.x@gmail.com"
Then @ work when I want to commit something to my home github project.
cd ~/git-project
git homeprofile
To confirm it's worked.
git config --get user.email