Contributions overcounted because of rewriting history -- any way to reset them without deleting/recreating repo? #59921
Replies: 3 comments 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.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
This is pretty frightening but the solution is to:
It worked for me. |
Beta Was this translation helpful? Give feedback.
-
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