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

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

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)

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

0 votes
Haydn Dias I'm New Here yesterday

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

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

253 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot