Skip to content

Commit

Permalink
Add a way to find tags containing specific commit (k88hudson#195)
Browse files Browse the repository at this point in the history
* Add a way to find tags containing specific commit

* fixup! Add a way to find tags containing specific commit
  • Loading branch information
vonglasow authored and RichardLitt committed Dec 30, 2017
1 parent 4dcb631 commit 5de8869
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 5de8869

Please sign in to comment.