SourceTree automatically refreshes while staging

Dear all, I use SourceTree everyday, but recently it automatically refreshes the difference view window, while I am staging file. This is very annoying! I need frequently click the file again, again and again. Does anyone encounter this problem? Best, Li

6 answers

1 accepted

0 votes
Accepted answer

I tried a few days, and this problem just gone for now. It may be caused by confliction with other applications.

Auto-refreshing should only occur if some other application is changing files in your repository, because SourceTree refreshes in response to events from the operating system. Is there something this is frequently saving files in your repository, triggering the refresh?

You can disable auto-refreshing in SourceTree either for a single repository (Settings on the toolbar, Advanced, disable auto-refresh checkbox), or you can do it globally in Preferences (or Tools > Options on Windows), the same 'Auto-refresh when files change' option.

Hi Steve, I have tried the disabling of auto-refreshing, but the problem persist. Any idea?

Hi Steve, should I delete SourceTree completely, and install it again? If yes, how to delete it COMPLETELY? Thanks!

I don't know why this hasn't worked for you, I've tested disabling auto-refreshing here, both in the repository Settings > Advanced (which just affects one repository) and in Tools > Options (which is global), and it definitely prevents SourceTree from auto-refreshing at all. Refreshing only occurs when you press F5 or perform an action like committing or *after* performing a stage (not during).

Uninstalling and re-installing shouldn't make any difference at all, but please do make sure you're running the latest version (currently 1.0.3).

Sure but why would we want to disable the feature completely? It should just work as advertised.

Hi @Steve Streeting, I seems there's a regression on this issue, as I am experiencing the same issue, and no disabling is helping me here.

yeah, this makes source tree useless for diffs

Like 1 person likes this

I'm also having this same issue with SourceTree (2.1) on OS X 10.10.5 (14F1509). If I turn the "Refresh automatically when files change" option to off within preferences the bottom pane containing the lift of files with changes and the selected files contents continues to refresh when the files are changed by another program.

Same here, refreshing disabled in all settings, and it still refreshes over and over (running on a Mac)

it's now 2019 and this bug is STILL present.

I've also had this issue on Windows 10 64Bit Version 1709, running sourcetree, happens with LibGit2 enabled or disabled, using system git 2.16.1 + git-lfs v2.3.4. The Push Changes checkbox on FileStatus gets enabled/disabled constantly (not checked and unchecked). And when this is happening I can't click the commit button unless I spam it sometimes I get lucky, closing and reopening sourcetree sometimes temporarily fixes the issue, I have auto-refresh off

I am also experiencing a constant refreshing issue and this has only started in the last couple of updates. Previously it was working seamlessly. 

It can now be almost impossible to commit changes as the file view is constantly refreshing, making it impossible to stage the files. Also the commit button gets disabled and re-enabled every time it refreshes so as someone mentioned above the only way to submit is constantly click it until you get lucky!


i have reverted to using the command line which is really frustrating, if it’s not fixed soon I will need to look for another GIT client. 

Hi Steve, I have tried the disabling of auto-refreshing, but the problem persist. Any idea?

As of today I am still seeing this problem.  The only thing running is visual studio but I am not modifying the file.  The diff view isn't stable at all for me.  Disabling the refresh shouldn't be necessary.  It is useful when it works correctly but I can't imagine what is causing the files to change ever 2 or 3 minutes.  The sourcetree diff has become nearly useless with the refresh setting on, and even though I like beyond compare I don't want to have to do an external diff in all cases.  

I'm using version for windows.  By the way, this problem does not happen with Beyond compare.  Beyond compare notifies me when it thinks that the file has changed.  Therefore I'm sure that the file not being changed.

See the image below.  When I clicked off that setting and ran a stop watch for more than 4 minutes I didn't see the problem.  I think that default remotes check resets the log history view every X number of minutes or whatever it is set to regardless of any need to refresh.  While staring at a diff, the diff view just clears out and the first file within the log history is reselected every so often which seems to correspond to that setting.  It doesn't correspond exactly when using a stop watch but it seems to happen within 30 seconds after the x minute mark according to my stop watch.  Why would checking default remotes need to reset the diff view?


image2014-12-8 11:39:2.png

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,125 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