Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sourcetree sometimes showing changes from some arbitrary commit

For instance, after clicking on HEAD, I see

Displaying all changes between 19e9eb6b0c81aaa80227a15357d2b9e5ba3053cc and working copy


Since that 19e9 is ancient, this diff takes ages.  The only way I have found to "fix" this is to close SourceTree and reopen it.  Is this a feature of sourcetree I am somehow triggering and how do I turn it off when I enable it?

If this is a bug, is it a known one that will be fixed soon?  when it happens, it pretty much mandates closing SourceTree as every operation takes minutes to complete.

Note, this isn't when using shift to select multiple items.  This is single clicking without modifiers pressed.  Though a modifier key might have been pressed earlier but isn't anymore.  Pressing and releasing mod keys (alt/ctrl/shift) does not fix it.


3 answers

Definitely a UI bug, I get this all the time. When "Displaying all changes between xxx and yyy" appears, SourceTree thinks you have two commits selected, but you have only one.

This occurs when the commit window refreshes while you're working, so your selected commit disappears. Internally, SourceTree thinks it's still selected, but you can't de-select it through normal actions, e.g. selecting another commit.

Workaround: Hit Ctrl-A to select all commits in the window. Then click on a commit. It should show normally again.

Thank you so much, this fixed it.  My days of resetting Sourcetree over and over are done.

Like jlidbeck likes this

You are a life saver! Thank you. Nowadays sourcetree is getting worse every patch.. maybe some key developer has left the team?

Like jlidbeck likes this
2 votes
Deleted user Jan 07, 2019

This issue is still present in version 3.0.12 under Windows 10.

1 vote
Ana Retamal Atlassian Team Aug 11, 2017

Hi Brian, this actually sounds like it could be a bug. Please provide some more information so we can reproduce it:

  • Which version of SourceTree and OS are you using? 
  • Which diff tool are you using?
  • Does it only happen with this ancient commit?




Beyond Compare for Diff

Windows 10 OS


The commit isn't always the same one.  But certain commits seem to come up often.


When I notice it broken is often shortly after having tabbed back into the program.  So it could be an issue with what's done when SourceTree is not in focus.

IE, work in Visual Studio.  Tab to SourceTree to check diffs/commit working change/etc.  Suddenly diff window has one item highlighted but the diff is across a large number and takes forever to generate/refresh.


It seems if I check/uncheck the show all branches it will fix the problem without restarting.

Having the same issue.


Windows 10

I've also been seeing this issue on Windows 10 with SourceTree

Same here Windows 10 with SourceTree

Note this usually happens when there are uncommitted and unstaged changed files. When I commit these file the issue is gone for a time. But it comes back often (probably after some commit or branch checkout, but I can't tell for sure what the actual reason is).

Same issue here on Win10 with SourceTree

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 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...

7,219 views 5 14
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you