git config user.name "FIRST_NAME LAST_NAME" is it important to have the name exactly on github username?

Issue

I don’t know where they came from Maruf Hossain but my GitHub config name is mickeymaruf, so I want to see my profile picture as well.

So I tried by changing my git config name "Maruf Hossain" and "mickeymaruf" for two different times and saw that both are working now and only showing my username as geen mark now.

But I’m still confuse how the "Maruf Hossain" appeared then yesterday and day before yesterday’s commit.
Can anyone explain me what is the issue did happen with it and is it important to have the right config user.name or it’s just not make any sense?

enter image description here

i just want to pass this Q

Solution

Your commits are associated on GitHub with your email, not the author name.

If you change your local config user.name but keep your GitHub email as user.email, your commits would still be checked with your GitHub account.

Answered By – VonC

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published