salvob
salvob

Reputation: 1370

github contributions for branch different than master

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 ?

Upvotes: 15

Views: 7352

Answers (1)

Hemant Singh Bisht
Hemant Singh Bisht

Reputation: 127

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.

Upvotes: 6

Related Questions