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

  • SEARCH
  • Home
  • 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 6847121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:42:23+00:00 2026-05-27T00:42:23+00:00

If I look at the commit graph with gitk –all , it’s quite complicated

  • 0

If I look at the commit graph with gitk --all, it’s quite complicated (I did a lot of branching and merging just for the fun of it on a little one person project). Now I was wondering, if there is a way to simplify this graph?

Simplify in the sense of removing unnecessary branching (the branches are all merged into master at some point)

  • 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-05-27T00:42:24+00:00Added an answer on May 27, 2026 at 12:42 am

    I’m fairly certain that what you’re looking for is the first parent option, which causes Git to walk to only the first parent of merge commits as it traverses the history. You can use it from the command line:

    git log --first-parent
    gitk --first-parent
    

    or within gitk: View > New view… > Limit to first parent (under Miscellaneous).

    Of course, you might also not want to use --all; gitk <commit>... shows only the history starting from the given commits (which could be specified as branches), and with no arguments it defaults to the current branch.

    If you have a more precise idea about the history you want to see, you could use some of the other options listed under History Simplification in man git-log. Notably there’s --ancestry-path which can be used to show only the direct ancestry path: git log --ancestry-path commit1..commit2. gitk generally takes the same commit specification options as git-log, which inherits them in turn from git-rev-list.

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

Sidebar

Related Questions

Using Mercurial (hg), can you just hg backout all the commits you did for
Look at https://github.com/rails/rails/commit/1408b942d9c2c131a1cdcab97f49d74ce84dae38 I thought mocking meant you can mock any method. Did not
I have a sequence of new objects. They all look like similar to this:
I imagine that I should write a git commit hook (post-merge?) that would look
Case Quite often I find myself staring at some old code that doesn't look
I did a git rebase -i on a commit several nodes earlier. I added
I have lots of entries in the slow query log that just have COMMIT
I've just deployed a commit to Heroku which adds a portfolio field to my
Look at this image: alt text http://img139.imageshack.us/img139/4488/picture2ep3.png I know how to add UITableView with
Look at this situation: www.websitea.com displays an img tag with a src attribute of

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.