I have a rather large git repository with files that have been left unchanged for years. As such they have been part of many commits, and some of these commits have been tagged (published versions).
How can I obtain a list of all the tags that contain a specific version of the file (the currently checked out version for instance). All the commands I see only list commits where the file has changed, while I am interested in all the ones after that change.
(this question is similar to this one but for Git...)