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.comRelated terms
- git config — The command that reads and writes Git settings, which live in plain text config files.
- config scope — Which of Git's config files a setting lives in: system for every user, global for you, or local for one repository.
- author and committer — The two identities stored in every commit: the author who wrote the change and the committer who last applied it, each with a timestamp.
Taught in
- Installing Git, And Telling It Who You Are — Advanced Git Internals & Distributed Workflows