From 5de8869df2aacfc8ae3fe2d64a627a609b8b0e3a Mon Sep 17 00:00:00 2001 From: vonglasow Date: Sat, 30 Dec 2017 19:21:53 +0100 Subject: [PATCH] Add a way to find tags containing specific commit (#195) * Add a way to find tags containing specific commit * fixup! Add a way to find tags containing specific commit --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 0b3d5c0..207fffc 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,7 @@ For clarity's sake all examples in this document use a customized bash prompt in - [I want to find a string in any commit](#i-want-to-find-a-string-in-any-commit) - [I want to find by author/committer](#i-want-to-find-by-authorcommitter) - [I want to list commits containing specific files](#i-want-to-list-commits-containing-specific-files) + - [Find a tag where a commit is referenced](#find-a-tag-where-a-commit-is-referenced) - [Submodules](#submodules) - [Clone all submodules](#clone-all-submodules) - [Remove a submodule](#remove-a-submodule) @@ -1198,7 +1199,14 @@ While using wildcards, it's useful to inform `--name-status` to see the list of $ git log --name-status -- **/*.js ``` + +### Find a tag where a commit is referenced +To find all tags containing a specific commit + +```sh +$ git tag --contains +``` ## Submodules