Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does user.name in Git need to match my GitHub username?

Tags:

git

linux

github

I am installing Git on an Ubuntu system. I need to set user.name. I already have a GitHub account. If my full name is John Doe, and I've set up my GitHub account with the username "Jon-D", do I need to use that name for the Git user.name or can I (should I) use my full name?

like image 996
Josh Avatar asked Jan 25 '15 21:01

Josh


1 Answers

No, your user.name does not matter.

However your user.email should match one of the addresses in your GitHub settings.

git config --global user.email "YOUR EMAIL"

You can also keep your email private

like image 167
Luboš Turek Avatar answered Oct 25 '22 21:10

Luboš Turek