1

I have a problem with Git commits. I am not shown as contributor on my GitHub account in a private repository.I think it is because i get a different email address, than my GitHub account,with the git config user.email command. I committed in these months with that email, is there a way to transfer past commits ,history etc... to my GitHub account?

djvg
  • 11,722
  • 5
  • 72
  • 103
  • 4
    Try the solution in [this question](https://stackoverflow.com/questions/2919878/git-rewrite-previous-commit-usernames-and-emails) and see if it helps. – Khanh Luong Jun 23 '22 at 15:50
  • related: https://stackoverflow.com/q/71821971 – djvg Apr 18 '23 at 09:07

1 Answers1

1

You can have multiple email addresses associated with your GitHub account. If you add the email address to your account and it meets all the other GitHub criteria then the commits should be associated with your account.

Alternatively, you can rewrite your commits to use a different email address.

TTT
  • 22,611
  • 8
  • 63
  • 69