Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

github contributions for branch different than master

Tags:

git

github

Why, if I make a commit in, let's say, develop branch, doesn't this appear in my contribution?

I expected that if I merge that branch into master then all the commits made into develop or other branches would be visible. But that doesn't seem to be the case.

Is there anyway to do so? or the commit has to be made directly into master ?

like image 633
salvob Avatar asked May 28 '16 16:05

salvob


1 Answers

Github only counts contributions made to the default branch(which is usually master) but not those to any other branch. You can change your default branch from master to develop(from setting of that repository), if you work on it more often and wish to see contribution made to develop to appear as contributions. More information on github help page.

like image 62
Hemant Singh Bisht Avatar answered Sep 28 '22 07:09

Hemant Singh Bisht