Reputation: 36026
Once I've located some specific commit in a git repo (e.g. one that fixed some bug or introduced some feature), I'm naturally interested which releases I can find it in.
x.y.z
.Things I considered:
git describe --contains <sha1>
- only shows the 1st tag after the commit, while I'm interested in an indefinite number of tagsgit branch -a --contains <sha1>
- shows branches, i.e. version lines, rather than individual releasesShowing how to also do it in GitHub and/or TortoiseGit UI, if possible, would be a plus (comment if you feel this warrants a separate question).
Upvotes: 0
Views: 49
Reputation: 34003
On git CLI do git tag --contains <sha1>
Go to TortoiseGit log. Right click on the on the commit and select "Show branches this commit is on" (requires TortoiseGit > 2.3 in order to see tags, enter "tags" to filter in order to only see tags).
Upvotes: 2