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?
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.
Your local Git commit email isn't connected to your account Commits must be made with an email address that is connected to your account on GitHub.com, or the GitHub-provided noreply email address provided to you in your email settings, in order to appear on your contributions graph.
Whenever you commit to a project's default branch or the gh-pages branch, open an issue, or propose a Pull Request, we'll count that as a contribution. Repositories are sorted by your recent impact. A commit today is worth more than a commit last week.
I just stumble on this as well. You can actually see the graphs for other branches than the Master branch.
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:
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 :(
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With