Today’s post is a quick tutorial how to use “git grep” and “git tag” to find the earliest tag that contains a particular line of code.
TL;DR: use:
git grep <regexp> $(git rev-list –all)
and
git tag –contains=<commit hash>
Source: New feed
Cheap WordPress Update Blog: Git: Find the First Tag Containing a Specified Keyword
