user.name and user.email

The two settings that give the name and email Git writes as the author and committer of every commit you make.

In more detail

Git refuses to commit when it cannot work out both, but it never verifies them: whatever strings you typed are copied into each commit. Changing them later does not alter old commits, because a commit's text is part of its ID; correcting past commits means rewriting history. Set them once per machine with the global flag, and override per repository where you need a different email.

Example

git config --global user.email ada@example.com

Related terms

Taught in

References