Which email is recorded on the commit?
$ git config --global user.email me@home.dev $ git config user.email me@work.dev $ git commit -m "x"
- Both, as co-authors
me@work.devme@home.dev- Neither; Git asks first
Without a scope flag
Play Git ▸
git config writes to the repository's .git/config, and local settings override global ones.