I'm very new to Git and have never used any VCS before. I just opened a GitHub account. I started out by reading the GitHub help pages. I downloaded and installed Git on my local Windows machine. From there, I was directed to the Pro Git book. During the initial setup I used my proper legal name.
I've done so much reading about Git and GitHub in the last little bit that I can't remember where I read what. I thought I read something somewhere (but can't find it now) that said I should use my GitHub username as my Git user.name. So now I am not sure what to do.
I've read this Pro Git page which says:
$ git config --global user.name "John Doe"
And I've read this GitHub page which says:
$ git config --global user.name "Your Name Here"
The first implies that one should use their proper name, the second is unclear. However, the GitHub page also has the following to say:
We use the email address to associate your commits with your GitHub account.
What I take from that is that the user.email is important if I want my commits linked to my GitHub account. Since it doesn't say anything about the name, I'm thinking that maybe it doesn't matter.
So what should I be using for my Git user.name?
You can use your proper name, username or whatever identifier you'd like for user.name. It will be logged in each commit along with your email address, commit message and various other details. And you're exactly right about how GitHub uses the email address. Good luck with git! You're on the right track with Pro Git.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With