Print the number of commits since a specific tag

git rev-list

  • List revisions (commits) in reverse chronological order.
    More information: <https://git-scm.com/docs/git-rev-list>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git rev-list {{tag_name}}..HEAD --count

click the source code to copy install git rev-list on any operating system with command-not-found.com