I have a repository which has multiple tags on the same commit. For example:
commit #3 <--- TAG1 / TAG2 / TAG3
|
commit #2 <--- TAG4/ TAG5
|
commit #1 <--- TAG6/ TAG7
I'd like to find out what tags are on a particular commit. For example, if I check commit 1, I'd like to get tag 6 and tag 7.
I have tried:
git checkout <commit 1>
git tag --contains
which displayed tags 1-7.
git checkout <commit 1>
git describe --tags HEAD
displayed tag 6 only.
What is the proper way to do this in Git?