Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does git ask for users' email address?

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

like image 969
Andrew Grimm Avatar asked Nov 01 '25 02:11

Andrew Grimm


1 Answers

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:

  • https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
like image 53
Stephen C Avatar answered Nov 04 '25 08:11

Stephen C



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!