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
This commit is contained in:
vonglasow 2017-12-30 19:21:53 +01:00 committed by Richard Littauer
parent 4dcb631734
commit 5de8869df2
1 changed files with 8 additions and 0 deletions

View File

@ -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
```
<a name="find-a-tag-where-a-commit-is-referenced"></a>
### Find a tag where a commit is referenced
To find all tags containing a specific commit
```sh
$ git tag --contains <commitid>
```
## Submodules