prime
prime

Reputation: 15574

User name of the GitHub account is not displayed as the author of the commits

Recently I noticed that all my commits for a git repository in gitHub are showing a wrong name (not my account user name, which normally a hyperlink to my profile)

So there will be a blue question mark which has a tooltip saying "Invalid author email. If this commit was made by you, check your local git email setting."

So I did some change which was indicated here.

git config --global user.email "[email protected]"

And after that my commits will have my user name as author name and it will act as the hyperlink.

But the problem is all my other previous commits were remains unchanged. Is there any way I can change those as well. ? (i.e. to set my user name as the commit author)

Upvotes: 1

Views: 2243

Answers (2)

Serban Constantin
Serban Constantin

Reputation: 3576

So you used a different email address as user.email on the original commits?

If yes, then I think you can fix that by associating that email address with your GitHub account (see here on how to do that).

Upvotes: 1

Meet Mehta
Meet Mehta

Reputation: 4909

Try to set your name

git config --global user.name "John Doe"

Upvotes: 0

Related Questions