$ ./guess_the_languageGit
Git · medium · #50

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"
  1. Both, as co-authors
  2. me@work.dev
  3. me@home.dev
  4. Neither; Git asks first
Without a scope flag git config writes to the repository's .git/config, and local settings override global ones.
Play Git ▸