Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github: Show branches which contain a commit

Tags:

git

github

If you look at a commit via github web GUI for example: b2d273a2fdc83e9b1d270895e253b55a813163d9

I know how I can list all branches which contain this commit on the command line:

git branch --contains <commit>

Is there a way to do this (list branches containing this commit) via the web GUI of github?

like image 943
guettli Avatar asked Oct 16 '22 09:10

guettli


1 Answers

There's a trick you could probably use, esp. for your use-case of checking whether a fix / commit is in a release (and thus was merged via a PR in a proper workflow): You can search for a commit's SHA1 on the "Pull requests" tab in the "Filters" field, just paste the SHA1 there. If there is an open or closed PR that contains that SHA1, it will show up in the search results.

like image 81
sschuberth Avatar answered Oct 31 '22 14:10

sschuberth