Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does git know my email?

Tags:

git

git log correctly shows my full name and email address in the commit log. I don't remember ever telling git who I was. Have I just forgotten or does git get this information from somewhere else? (Linux)

like image 967
spraff Avatar asked Dec 29 '25 08:12

spraff


1 Answers

It's (likely) configured in the global git config.

You can verify it by running

git config --global --get user.email

Or more in general, you can list the entire global configuration with

git config --global -l

You probably configured it a long time about and forgot about it since then.

like image 161
Gabriele Petronella Avatar answered Dec 31 '25 00:12

Gabriele Petronella