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

Tamara Jordan January 19, 2017

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
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2017

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.

Tamara Jordan January 24, 2017

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

0 votes
Tamara Jordan January 20, 2017

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
TAGS
AUG Leaders

Atlassian Community Events