Contribution Activity not displaying on my profile (email config issue). #158495
-
|
I committed to this repo for several months. I recently noticed that:
The reason I was not listed as a contributor was because I mistakenly configured the email in my text editor to my school email, not the email associated with my GitHub account. After re-configuring the correct email and pushing a commit, I was listed as a contributor with all of my past commits. However, these old commits are still not reflected on my profile (just the one commit after re-configuration). Is there any way to fix this issue besides having to re-write history? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
One approach you can try is adding your school email to your GitHub account (under Settings > Emails), while keeping your main email as the primary. This should retroactively associate your previous commits with your GitHub profile, and they should appear correctly under your contributions after like an hour to a day. |
Beta Was this translation helpful? Give feedback.
-
|
Hey there, I just ran into this myself. Here is what fixed it: First, you need to change the email associated with your old commits with the correct email. This can be done with Where you replace 'root@localhost' with the old email and john@example with the correct email (this was found here). You can then push the changes with:
Hope that helps! edited to add: If you want to figure out what email was used in the old, inattributed commits, you can use |
Beta Was this translation helpful? Give feedback.
-
|
I was able to solve this issue without re-writing history of the original repository. I made a fork of the original repo, used the script from @CLPolo , and then detached the fork in order for the contributions to be shown on my profile. |
Beta Was this translation helpful? Give feedback.
Hey there,
I just ran into this myself. Here is what fixed it:
First, you need to change the email associated with your old commits with the correct email. This can be done with
Where you replace 'root@localhost' with the old email and john@example with the correct email (this was found here).
You can then push the changes with:
git push --force --tags origin 'refs/heads/*'Which was found here
Hope t…