Quick Tip: Locate Tags in Git with a Specific Commit

Need to find which tags in your project contain a specific commit ID? I recently need to do this to find out when a specific bug fix (commit ID: abc123) was released in a project.

Simply enter:

git tag --contains abc123

Git will then list all the tags that include the bug fix, helping you identify the release times effortlessly. This method is a time-saver for finding when issues were fixed in a release cycle.

Leave a Reply

Your email address will not be published. Required fields are marked *