I've just hit a bug in a project on Github. I found an issue listed for the bug, and it lists a commit that supposedly fixes the problem.
How can I see which branches or tags, if any, include the commit that fixed the bug? I'd like to do this on Github, if possible, but a pure git solution would be OK, too.
In order to find the latest Git tag available on your repository, you have to use the “git describe” command with the “–tags” option. This way, you will be presented with the tag that is associated with the latest commit of your current checked out branch.
On GitHub, you can see the commit history of a repository by: Navigating directly to the commits page of a repository. Clicking on a file, then clicking History, to get to the commit history for a specific file.
In addition to the link Charles B posted, which explains how to find the branches, you can use git tag --contains
as an equivalent command for for finding tags that contain the commit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With