After git rebase, I have no contribution, but I am still in Contributors
#73032
Replies: 3 comments 1 reply
-
|
I think the revert commit still trace your commit, so there's a contribution |
Beta Was this translation helpful? Give feedback.
-
|
https://github.com/orgs/community/discussions/49813 This may helpful to you. Change the main branch name, refresh the contributor list, then change back. After that, dangling commit / legacy commits that have been rebased could be ignored. |
Beta Was this translation helpful? Give feedback.
-
|
This isn't a bug it's expected Git and GitHub behavior. A few things are likely happening: Author vs. committer. Every commit stores two identities: the author (who originally wrote it) and the committer (who applied it). A New commit SHAs. Rebasing rewrites history and assigns your commits entirely new SHAs. That's why you "can't find" your original commits — they may still exist under different IDs with your authorship intact. Possible squashing. If the rebase squashed multiple commits into one (or the PR was squash-merged), only a single author is credited on the combined commit, so individual contributions can disappear from the visible history. This is by design. Caching. GitHub recomputes the contributor graph on a delay after a force-push, so your name can persist there for a while even if the underlying commits changed. You can verify how your identity is attached by running: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
I previously contributed to this repository using my own account, but after a git rebase, I can no longer find any trace of my contributions. Why am I still listed in the Contributors? Could this be a bug on GitHub?
Beta Was this translation helpful? Give feedback.
All reactions