Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Commiting to non master branch and the contribution calendar

Tags:

git

github

I have my own repository on github. And I noticed that some commits don't show in the contribution calendar when they aren't made to the master branch. I perceive this ridiculous and not making any sense. What if I commit to the develop branch and other ones and only sometimes merge the changes to master? The contribution calendar will be mostly white.

And I even didn't find any mention about this at github help.

Does this really work that way? Is there any logic in it?

like image 222
Incerteza Avatar asked Sep 16 '25 04:09

Incerteza


1 Answers

Github does not display contributions to any other branches other than the default one (which doesn't have to be master).

So if you're contributing to a develop branch in any repo, you should see these on your profile if develop is set as the default branch in that repo.

See more details and all rules on the GitHub Help page.


btw. the help page was just a click away from the profile page enter image description here

like image 107
Radek Simko Avatar answered Sep 18 '25 17:09

Radek Simko