Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I see which branches or tags on Github include a specific commit?

Tags:

git

github

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.

like image 877
Nathan Long Avatar asked Nov 14 '11 13:11

Nathan Long


People also ask

How do you check the tags of a commit?

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.

How do I see commit details on GitHub?

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.


1 Answers

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.

like image 152
Andy Avatar answered Sep 21 '22 02:09

Andy