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 8882747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:39:21+00:00 2026-06-14T20:39:21+00:00

I have a topic branch that I’ve been working on for quite some time

  • 0

I have a topic branch that I’ve been working on for quite some time and I would like to see just the changes made to this branch. For awhile I was being good and merging the master branch into my topic branch periodically, but eventually I forgot and now it’s diverged tremendously.

For example, let’s say I have a history like:

         q---r---s---t---u---v---w---x---y---z---my_topic
        /           /           /
---a---b---c---d---e---f---g---h---i---j---k---l---m---HEAD
            \         /
             1---2---3   (another topic)

In this case, I would like to just see commits r, s, u, v, x, y, z for example. I don’t want to see any changes introduced by the merges. But since the branch diverged from HEAD, I can’t just look at the difference between HEAD and my branch. And they diverged to the point that merging them together is a heck of a lot of work just to see the differences.

So is there a way to see the commits made on a given branch that did not originate on another branch or as a result of a merge with another branch?

  • 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-14T20:39:22+00:00Added an answer on June 14, 2026 at 8:39 pm

    You can display the commits that are in my_topic but not in HEAD, excluding merge commits using:

    git log --no-merges HEAD..my_topic
    

    You could actually leave HEAD out and just use ..my_topic, but the two commitish form is more general.

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

Sidebar

Related Questions

I have master branch (It is working copy), then some point in time I
If I have created and pushed a topic branch that has been merged to
I have a local topic branch that's tracking a remote branch. For the sake
I have a 'master' branch and several topic branches. Assume that the master branch
I am researching security frameworks for an ASP.NET MVC3 application that would have some
I have jms topic, which may have 0,1,2 subscribers (meaning that some of the
There is a small topic branch that I'd like to apply on top of
I have a master branch in my project, that I use to pull changes
I have searched this topic on google a bit and seen some best practices.
I have read some posts about this topic and the answers are comet, reverse

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.