Contributions overcounted because of rewriting history -- any way to reset them without deleting/recreating repo? #59921
Unanswered
chriskorosu
asked this question in
Profile
Replies: 1 comment 2 replies
-
You can make the repository private, then all the history will disappear, but the non-pository will only remain available to you. This is the only way to remove history without removing the repository. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
The number of contributions displayed on my profile and my Github activity chart is incorrect. Currently they are being over-counted by quite a bit. I did some testing to figure out why that might be, and it seems to be caused by rewriting history.
For example if I push a commit to Github, then I revert or amend it locally and force push the new commit, Github will count both pushes as 1 contribution, even though the commit history will only show the last commit. (I know, I know, you're not supposed to force push/rewrite history, but I'm only doing this on private repos with me as the sole contributor).
One workaround I've found is deleting the repository (which removes all contributions associated with the repo), and recreating it from scratch (which generates a new number of contributions based on the number of commits in the repo).
I was wondering if anyone knows a way to reset the number of contributions WITHOUT deleting the repository?
Thanks,
Chris
Beta Was this translation helpful? Give feedback.
All reactions