Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should I use for git user.name? [closed]

Tags:

git

github

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?

like image 480
toxalot Avatar asked Dec 23 '12 21:12

toxalot


1 Answers

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.

like image 93
Jake A. Smith Avatar answered Oct 20 '22 20:10

Jake A. Smith