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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:58:39+00:00 2026-06-06T10:58:39+00:00

I say branch in quotes because I mean branch in the data-structure, graph topology

  • 0

I say “branch” in quotes because I mean branch in the data-structure, graph topology sense, not a git branch which is something like a handle to a particular commit.

I am on master, I created a new branch with a commit which I made from editing an earlier commit: (Alphabet order = chronological order, basically I found the bug was first introduced in commit C)

A -- B -- C -- D <-- master
      \
       E <-- bugfix_branch

I am on the master branch and I look at the little tree diagram in gitk and it does not show me commit E. Similarly if I checkout bugfix_branch branch and look there it shows me in the list only the commits A, B, and E (so I don’t see C or D).

I’d like to view a more complete view of my entire git history without having to first push to bitbucket or github to try to look at the graphs there. Is there some kind of way to view all the commits and see which commits are children of which?

  • 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-06T10:58:41+00:00Added an answer on June 6, 2026 at 10:58 am

    Here’s what I use to get a pretty printed tree in my terminal with all the nodes.

    log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all
    

    You can add this to your .gitconfig file, I have this in “~/.gitconfig”:

    [alias]
        lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
    

    Which lets me do:

    git lg --all
    

    (Disclaimer I modified the code from some other source, but I can’t remember where…)

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

Sidebar

Related Questions

Say I have a project in a git repository. The project has a branch
I'm looking to implement 'branch and bound' over a cluster (like Amazon's say), as
Say I have a feature branch, into which I merge upstream changes prior to
Say I have a branch work and a branch ideas in my git repository.
I'm working on a branch, say "experimental", which I branch out from my master
I have an application running in a git repository on a branch (say dev
Say I have branch A in TFS from which I take branch B. Some
,Let's say I have a master Git branch and a feature branch off of
Let's say that I have a file core.clj in branch master at HEAD which
Say, if a project using Git is all committed, with master and foo branch

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.