From 585954e9d0f85d003177512123f23997e11e55ed Mon Sep 17 00:00:00 2001 From: marchersimon <50295997+marchersimon@users.noreply.github.com> Date: Fri, 3 Sep 2021 21:12:35 +0200 Subject: [PATCH] git rev-list: add --count example (#6459) --- pages/common/git-rev-list.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/git-rev-list.md b/pages/common/git-rev-list.md index fbb7a59262..9121cdf04b 100644 --- a/pages/common/git-rev-list.md +++ b/pages/common/git-rev-list.md @@ -14,3 +14,7 @@ - List all merge commits on a specific commit: `git rev-list --merges {{commit}}` + +- Print the number of commits since a specific tag: + +`git rev-list {{tag_name}}..HEAD --count`