GitHub – Does GitHub Update Contributions When Merging Branches?

github

I made 28 commits on my play_grnd branch. When I merged my branch into master branch (or someone merged my branch into master),

Does contributions section on my profile page update itself with changes in varying shades of green?

Best Answer

Does contributions section on my profile page update itself with changes in varying shades of green?

Yes. However, there are exceptions to how contributions are tracked based on the method used for merging a pull request.

When a pull request is merged and commits are squashed, only the user that merged the pull request and the user that opened the pull request receive contribution credit. No other contributors to the pull request will receive contribution credit.

When rebasing commits, the original author of the commit and the person who rebased the commits, whether on the command line or on GitHub, receives contribution credit.