Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8613323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:50:56+00:00 2026-06-12T04:50:56+00:00

On github, when I view a commit, it shows me the commit message and

  • 0

On github, when I view a commit, it shows me the commit message and the changes, along with any comments at the bottom. However, it doesn’t tell me what branch the commit was checked in to. Even if I ‘Browse Code’, it is browsing the code for a particular ‘tree’ (presumably the state of the code when the commit was made), rather than for a particular branch.

I know that commits in git aren’t intrinsically linked to a branch, but surely they are always going to be first committed into a particular branch? Isn’t the commit tagged with that branch, and can I view which branch it was somehow?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:50:58+00:00Added an answer on June 12, 2026 at 4:50 am

    OK, the answer to this question, fundamentally, is: there is no definitive way to tell. Mercurial actually tags commits with the name of the branch they were checked in to, but git simply doesn’t; apparently, it isn’t considered important what the name of the branch was. This was a design decision and it doesn’t look like it’s going to change.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

https://github.com/adymitruk/fubumvc/commit/083e1d593d4e797ac04fb493acd1e29a332cd303?w=1 It seems returning a continuation breaks the binding to the view. It used
Using ROAR ( https://github.com/apotonick/roar ) and without using ActiveRecord or any view-templates I want
Is there a way to display a commit on github.com without showing whitespace changes?
Clicking a breadcrumb link in github will trigger the directory view area to transition
On github, I forked an old version of another project. I made some changes
I want to modify and view github wikis with local editor like Emacs, and
When I view files on GitHub, tabs appear as 8 spaces. Example: Is that
If you view this URL, you'll see that GitHub is posting all sorts of
I'm using the demo example in https://github.com/nicklockwood/AsyncImageView to load images asynchronously, however my app
I view the code of express, and see this code https://github.com/visionmedia/express/blob/master/lib/application.js#L490 if ('all' ==

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.