Why does the graph in sourcetree look so different from git log?

Here is the graph I get when running the command `git log --graph --oneline --decorate --all`

It's completely linear. origin/chord-groups and master share mutual commits.

image2017-1-19 13:42:2.png

However this is the graph I get in Sourcetree:

image2017-1-19 13:43:12.png

I'm struggling to understand why the graph isn't linear. The graph implies that chord-groups and master don't share the same history.

2 answers

1 accepted

1 vote
Answer accepted

Check to see if SourceTree is displaying commits in "Date Order" or "Ancestor Order", and try switching it. I've seen other people report situations where somehow using one or the other results in a situation where SourceTree displays a child commit lower on the list than its parent, and that completely destroys its ability to render correct lines.

I spent ages trying to work this out and the fix was so simple. Thanks! smile

Decided to just use the shell on it's own from now on. Using sourcetree has started to become more and more of a drag.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,237 views 4 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you