How to view GitHub Contributors Graph for branches other than master?
At https://github.com/yourusername/yourreponame/graphs you can find some nice graphs showing commits over time. However the information is only for the master branch.
How do I see the same information for a branch other than master, or see a graphs taking account commits across all branches?
If this is not possible, how can I at least see how many line of code have been committed under a particular branch via the GitHub web GUI?
Is any of this possible?
Solution 1:
I just stumble on this as well. You can actually see the graphs for other branches than the Master branch.
- On Github in your repo - choose settings.
- In settings - change your default branch to whatever branch you would like to see the graphs for.
Solution 2:
The help of Github: Viewing contributions :
Whenever you commit to a project's
default branch
(or thegh-pages
branch),open an issue
, or propose aPull Request
, we count that as a contribution.
So:
- default branch
- gh-pages branch
- open an issue
- pull request
only these will be counted.
As @Mikael 's answer, you can change the default branch
in repo's settings.
Another help of Github: Which contributions are counted?
For commit:
Your commit contributions are only counted when they are created on or merged into the default branch or gh-pages branch of a non-fork repository.
I also want github to count all the commits, not specified branch :(
Solution 3:
From what I can see, those graphs are for master
only: I only committed on the branch gitlist recently, and my commit activity only shows those for master
.
Unless you rebase your branch on top of a new repo you would create specifically for that kind of inspection, said branch activity won't be visible until it is merged back in master
.