Search code examples
gitgithubgit-commit

Github Cannot get commit count in badge


I have a repository and I'm adding following badge to the readme.

[![GitHub commits](https://img.shields.io/github/commits-since/Naereen/StrapDown.js/v1.0.0.svg)](https://github.com/pawarashish564/AutoCompiler/commit/master)

See this

GitHub commits

I changed the count url from my repository. Still it gets shows 45 . Total commits I have on my repository is 36. Please help me fix this.

thanks ✌️


Solution

  • You referenced the wrong repository in your URL.

    To get the right URL for your badge, it is best to use a wizard from shields.io (e.g. for commits, since a version this one).

    By entering your information (user name, repository, and tag, etc.), you can use the generated URL for your own badge.