Search code examples
gitgithub

How to find out which release(s) contain a given GIT commit?


Someone fixed a bug in HHVM in this commit:

https://github.com/facebook/hhvm/commit/796f986aba300b3f00b9ece0bf654c452ee217be

I want to know if this commit is already part of the official releases.

Is there a way to list the releases/tags that contain this commit, either on GitHub, or in a local clone of the GIT repository on my machine?


Solution

  • As pointed out by fellow members in the comments, this is already covered here, and is as easy as:

    git tag --contains <commit>