Git · Junior · Question 39 of 75
Why should you set user.name and user.email in Git?
- 1They decide who can review your pull requests
- 2They are the login credentials for pushing
- ✓Correct answer: They are written into every commit as the author
Explanation
Authentication to a server uses SSH keys or tokens; name and email only label commits. Platforms link commits to accounts by email.