1

I got a problem. When I am committing something to github from my console, it asks me to provide my login & password. After this when I am going to my github page, I notice that in there only my name appear (without my avatar and link to my account). In the contributors list there is no my account also. I have done a lot of commits already.

What should I do to display my account instead of my name for all these commits and also to appear in commit statistic?

Dmitry Papka
  • 1,201
  • 3
  • 13
  • 24

1 Answers1

1

Email in git config should be same as in your Github account

git config --global user.email "your_email@example.com"

Source: https://help.github.com/articles/setting-your-email-in-git

Try to add email with which you sent your commits from Github settings to make previous commits belong to your account.

Farid Movsumov
  • 12,350
  • 8
  • 71
  • 97
  • Thank you. But 'git config user.email' command showed that my email before was like: MyFirstName-MyLastName@github.com Is it possible to access this email? – Dmitry Papka Aug 21 '14 at 05:49
  • Look at this comment http://stackoverflow.com/questions/750172/change-the-author-of-a-commit-in-git#comment14673827_750182 – Farid Movsumov Aug 21 '14 at 05:52
  • Look at this question too http://stackoverflow.com/questions/750172/change-the-author-of-a-commit-in-git – Farid Movsumov Aug 21 '14 at 05:53