Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I'm loking at a commit on GitHub (for example), how can I tell what branch that commit is associated with?

share|improve this question
up vote 5 down vote accepted

Your wish is their new feature

If the commit is not on the default branch, the indicator will show the branches which contain the commit. If the commit is part of an unmerged pull request, a link will be shown.

Once the commit makes it to the default branch, any tags that contain the commit will be shown, and the default branch will be the only branch listed.

enter image description here

share|improve this answer

Look at the top right corner above the commit, for the "Current branch" dropdown (see image): enter image description here

share|improve this answer
I don't see the "Current branch" dropdown at when I'm looking at a commit (see my example link). Do you? – Lorin Hochstein Oct 15 '11 at 1:09
Yes, I do. Tap the 'Commits' tab and you'll see it too. – Traveling Tech Guy Oct 15 '11 at 1:50
If I tap the "Commits" tab, it switches away from the current commit and gives me the list of most recent commits. I can then switch branches, but that doesn't tell me what branch was associated with the commit I was originally looking at. – Lorin Hochstein Oct 15 '11 at 2:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.