Why are commits in forks not counted as contributions in profile? #45474
Replies: 17 comments 28 replies
|
I can't speak to the the why but there is a third option for how. That article lists two options for working around this limitation and explains why neither is ideal.
There is a third option, one that preserves commit history and allows contributions to be shown. And that is to manually create a non-fork repo and push to that as the origin. This is super easy with the So for example, I've forked https://github.com/norwd/should-you-have-some-coffee from https://github.com/marcospgp/should-you-have-some-coffee and made some commits that I want to show in my contributions. Right now that commit is not showing in my contributions graph, but if I clone the repo locally and rename the fork I can create a new repo that has the same name and origin as my fork but isn't treated as a fork by GitHub. gh repo clone norwd/should-you-have-some-coffee
cd should-you-have-some-coffee
gh repo rename should-you-have-some-coffee-fork --confirm
git remote rm origin
gh repo create should-you-have-some-coffee --public --source=. --remote=origin --pushWhat this does is move the fork to a separate repo that stays as a fork (you can delete this manually later) then creates a new repo that has the same name as the original fork and pushes all your commits there instead. Now my contribution activity shows that commit I made earlier in that fork. I know that this isn't the same as GitHub adding a button to change a fork to a standalone repo without contacting support, but it's still super quick and easy 😄 |
@joanaleoni Don't commits to my own personal repos count? By that logic, they shouldn't 🤔 I expected forks to act as any other repo. A fork is just a label, and there is a way to create an exactly equal repo without it, commits to which do count as contributions. |
|
Hello, I too would love to have an option to show contributions (commit/issues/etc) into fork counted on my activity profile. In my case, I've taken over the maintenance of a project, I've forked it and worked on that fork since. I will never do a pull request on the parent repo, which is effectively dead, and I would prefer to keep the parent/fork link for historical purposes. Regards, |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
🕒 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! 💬 |
|
What I do is the following:
|
|
🕒 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! 💬 |
|
🕒 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! 💬 |
|
Oooo, let's become more like forums of old and ban necro bumps!!! I hate the idea of Stalebot!! |
|
🕒 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! 💬 |
|
Still relevant, please allow a checkbox on our profile to also show/count commits to forked repositories. |
|
I took over maintenance of a project. I get a disabled "Leave fork network" setting with the text "Can't leave the fork network because this fork has child forks.". But the only fork listed is the original repo, which is no longer maintained. |
|
I wish we could know the "why" we can't show contributions to forks. It must be some technical issue that can't be solved? My solution was to update my profile bio with a reference to this discussion:
|
|
If you want your fork to show up in the forks of the parent, and your contributions to show in the contribution history, then do not commit to the main branch directly, create a separate branch ( like eg. develop ) and commit to that branch and then create a pull request to the main branch, this way GitHub will show contributions to the fork without leaving the fork network. |








Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
Question
Body
As explained here: https://anuragbhandari.com/coding-tech/someone-should-fix-how-github-counts-contributions-1591/
Some forks are actual standalone repos, intended to be maintained separately from the parent repository, but periodically synced.
All reactions