Git · Junior · Question 39 of 75

Why should you set user.name and user.email in Git?

Explanation

Authentication to a server uses SSH keys or tokens; name and email only label commits. Platforms link commits to accounts by email.

Further reading

Problem with a question

Git · Junior · question 39

Test yourself

Take the Git · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz