What is the specific use of user.name and user.email in git?

I always thought it was suitable for authenticating users, but today I submitted a private repo, on Ciyun. I suddenly found that git"s user.name and user.email were previously github, and it turned out that they could be submitted, so I wondered what the use of name and email was, just indicating the author"s name

.
Mar.19,2021

so to put it this way, it indicates who the user currently submitting is


"GitHub uses the email address set in your local Git configuration to associate commits pushed from the command line with your GitHub account." (from https://help.github.com/artic.
) means that this mailbox is used to match the GitHub account

Git uses a username to associate commits with an identity. The Git username is not the same as your GitHub username. (from https://help.github.com/artic.
this username is only used to mark the identity


Authentication is used. Your ssh key, username is more of a title

.
Menu