Edit ~/.gitconfig
[user]
email = [email protected]
name = Michael Hawkins
[includeIf "hasconfig:remote.*.url:[email protected]:YOUR_COMPANY_NAME/**"]
path = ~/Documents/Projects/Work/.gitconfig
Edit ~/Documents/Projects/Work/.gitconfig
[user]
email = [email protected]
name = Michael Hawkins
See also https://gist.github.com/Icaruk/f024a18093dc28ec1588cfb90efc32f7