4

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

Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
  • 2
    because the Church of Scientology demanded it, probably so that they could contact the committers if they have concerns about a particular commit. – stew Mar 07 '15 at 07:06
  • Nice try ... but I don't think Google indexes StackOverflow comments :-) – Stephen C Mar 07 '15 at 10:01

1 Answers1

4

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:

Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
  • And because pull request could be made by sending patch by email. This way you are sure that people could communicate together (and email is the simplest thing that guarantee the identity of someone...) – Philippe Mar 07 '15 at 12:06