Search code examples
gitemail-address

Why does git ask for users' email address?


Why does git ask for users' email address, and include it in each commit?


Solution

  • So that someone else can know who committed the change.

    By the way, it is a simple matter to configure git with a default email address for your commits. It is explained in the Git SCM ebook: