Once in a while I get the message shown below from Git. My questions regarding this are:
- Why does this happen?
- How can I prevent this from happening again?
- How does this affect my commits or any other Git actions I may take?
I realize similar questions have been posted to Stack Overflow, but I don't believe they address this message in particular.
Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
.gitconfig
file located in your per-user configuration directory. Since you told us exactly zero info about your system, I can't guess much more.