Sourcetree not detecting changed files
Asked by Dylan_Tusler:

I've been working fine with Sourcetree for a while. Recently it started to become slow with detecting file changes in my project. After a few days of this behaviour, it stopped detecting them altogether.

I am using version 2.3.1.0 on Windows 10, working with a BitBucket repo.

Now every time I need to use Sourcetree I need to exit and reopen it in order to pick up the latest changes.

I have tried uninstalling and reinstalling it, which fixed the problem for about 24 hours, but then it came back again.


Answers:
author: somethingblue
body: Hi Dylan,

1. Can you confirm the option "Automatically Refresh" is checked? You can verify it going on *Sourcetree -\> Preferences -\> General -\> Refresh automatically when files change*.
2. Are you using submodules in that repo?
3. When you modify a file and yet you cannot see the changes in SourceTree, what if you click an F5 to refresh the repository.. does it successfully refresh?

Lastly, reinstall SourceTree following [How to Wipe SourceTree Preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html) [](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html)and see if that works.

Cheers,

Branden

comments: author: Dylan_Tusler
body: 1. Yes the option is on.

2. No we are not using submodules that I am aware of.

3. Yes pressing F5 works.

I'll "wipe" sourcetree and come back in a few days with the results. I am travelling away from the office for a few days.


author: Dylan_Tusler
body: The immediate impact of following the config wipe is that SourceTree seems to be picking up the changes again. This also happened last time I reinstalled, so I will keep an eye on it and report back.


author: Dylan_Tusler
body: So far so good. Sourcetree has behaved itself since this fix.


author: crg_celaction
body: I am in the same position, and have the option on, etc, as above.

What do you mean by "wiping" ST? I'd try it if I knew how!

Thanks.


author: Attila Tamas Zimler
body: I'm experiencing the same issue and even after staging files, I have to press F5 just to get Sourcetree realized that it staged the files.


author: Jeremy Robson
body: looks like a fairly new bug, just installed sourcetree on a fresh windows machine and see this same issue. only work around is pressing f5 everytime you do anything


author: jimd123
body: Same here. I tried all the suggestions so far but no luck. v.3.3.6


author: Ash Jonceski
body: I'm experiencing the same issue on a new windows machine with fresh sourcetree install. It's SUPER annoying, needing to hit f5 to see any changes in app state.


author: Joel Allen
body: Same issue, Sourcetree worked fine initially, but after restarting hasn't auto-refreshed since. Version 3.3.6.


author: Ash Jonceski
body: I think this is also breaking stashing


author: Ash Jonceski
body: Re-installing sourcetree does seem to resolve it,


author: Ash Jonceski
body: Scratch that, still not working correctly. The app state isn't updating and requires F5 to update after any action,

This is Sourcetree 3.3.6 on Windows 10 Home version 1909/build 18363.535


author: grapeparfait
body: Same issue with me also. Sourcetree 3.3.6 doesn't update after staging files.


author: Juke
body: Same here.

Env:

SourceTree 3.3.6.3829

Win 10 Pro x64, Dark Theme, 3840x1600

Git v2.24.1 win2

Reinstalling the same version did not help.


author: Bernt Roelofs
body: I've got the same problem.

**Temporary workaround:** switch to another Tab (so another project in another Tab) and switch back to the original Tab: it updates then.

(it does mean you need at least two projects, if you don't just create a dummy one)


author: David Kyle
body: We have advised our development team to revert back to an earlier release that we trust.

**Work around**

We downloaded and installed the [older 3.1.3 release](https://product-downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.1.3.exe?_ga=2.169881440.1940432671.1578339233-1742812479.1577052256). It works for us. No need to uninstall 3.3.6. All settings were remembered.


author: David Kyle
body: See [bug report SRCTREEWIN-12735.](https://jira.atlassian.com/browse/SRCTREEWIN-12735)


author: Joe Rattz
body: I'm experiencing the same issue with detecting changes and, if I have a changed file and discard it, the screen flashes and the discard actually does happen but the changed file is still displayed in the Unstaged files panel.


author: Joe Rattz
body: Just installed version 3.1.3 using the link provided above in David Kyle's message. That resolved my detecting changes problem and the discarding changes problem.


author: afshinhfatlangi
body: Same here!


author: Juke
body: Yet, this works, but kills the dark skin. :S Temporarily of course it's okay. Thanks for the hint...


author: danilogasques
body: Using version 3.3.6.3829 here. I had the same problem twice. I wiped once and it worked well for a few days. Now it doesn't work anymore.

Thankfully, F5 presses work.

Ahh, my problem goes beyond mere file updates. If I commit my code, it won't show that the commit worked (despite executing the command) until I press F5. Same applies to pushing and everything else.


author: Attila Tamas Zimler
body: Older 3.1.3 release properly reloads the repository, however, keeps moving away from a selected commit when reloading - maybe this was the problem intended to be fixed when introducing the not reloading bug.


author: imk-ivan
body: Are they serious? For two years they could not get rid of this bug and it periodically occurs? Really, my trust in atlassian is dying with every new sourcetree release


author: Kira Resari
body: I am experiencing the same problem here.


author: Ray Ye
body: 3.3.7 has similar behavior. F5 all the time for any action.


author: micheilsgrey
body: 3.3.7 same issue, so annoying i cant even stage normaly files before commit evrything need to update manualy and even sometimes F5 not helping what the hell is the problem of sourcetree


author: mike_entyce_creative
body: 3.3.6 same here, well done fixing almost three years old bug, reinstalling doesn't help


author: PhilSwan SSI
body: 3.3.7 has the same issue and removing the config files does not resolve it.


author: hoggm
body: 3.3.6 same here. So annoying!


author: Lakpriya Srinath
body: It's fixed in 3.3.8: [https://jira.atlassian.com/browse/SRCTREEWIN-12705?focusedCommentId=2342485\&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2342485](https://jira.atlassian.com/browse/SRCTREEWIN-12705?focusedCommentId=2342485&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&_ga=2.118696841.1221900977.1581312692-718849683.1581312692#comment-2342485)


author: Lakpriya Srinath
body: **Still, 3.3.6** is there on the main site. Don't know the reason why.


author: Tyson Marchuk
body: I had a similar issue. I couldn't see a file change in one of my repos. F5 wouldn't work. VSCode saw the change and even SourceTree knew there were uncommitted changes on the History view and with a '1' on the Commit button but wouldn't list the file (csharp source file). Wiping all the settings worked but I didn't want to lose everything so after much trial and error I found the issue was in the user.config file with 'FileStatusFilter' set to 128. Deleting this setting resolved the issue although SourceTree kept restoring it from a copy of user.config in the Roaming AppData so it required deleting that backup first. Not sure what this setting is and what 128 means but I hope this helps someone else.

Edit: Upon reflection this is probably just the drop-down filter being set to Untracked. I'm not sure if I accidentally used a hot key to set that but I don't recall intentionally changing it.


author: rontattoo
body: Facing same issue even in the latest version 4.1.0 Bigsurf  

this is very annoying, i might have to find a different Git GUI that would work with bitbucket. any recommendations?

![Screen Shot 2021-05-03 at 6.15.10 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/141612i78E7B6A201C89FCB/image-size/large?v=v2&px=999 "Screen Shot 2021-05-03 at 6.15.10 AM.png")


author: smXplorer
body: F5 doesn't seem to even work anymore in 3.4.2... one year later.

This bug keeps getting worse with age.


author: fzuill
body: David Baker pointed me to the fix in 3.3.8. Here is the Jira link, and in there is a link to the exe. Totally worked for me. We're back in business. Thanks David for pointing it out!

The Jira link from David's message:

It's fixed in 3.3.8: [https://jira.atlassian.com/browse/SRCTREEWIN-12705?focusedCommentId=2342485\&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2342485](https://jira.atlassian.com/browse/SRCTREEWIN-12705?focusedCommentId=2342485&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2342485)

comments: author: fzuill
body: The link to the EXE is inside the Jira resolution :)


author: rura6502
body: 3.3.8 work fine! thx alot!


author: Lakpriya Srinath
body: The red exclamation mark shows up. Another minor bug from 3.3.8. Refresh issue has fixed it seems. **Still, 3.3.6** is there on the official site <https://sourcetreeapp.com/>

![red.png](https://community.atlassian.com/t5/image/serverpage/image-id/80921i03C5C29E613C0909/image-size/large?v=v2&px=999 "red.png")


author: hwzhao
body: my version is 3.3.8, and the red exclamation is marked, do not know the reason


author: Lorenzo_Petrone
body: Me too: I have 3.3.8, and the exclamation mark is still there. Clicking it just opens windows store asking me to install an app to handle ssh.


author: David Walters
body: I'm having this issue as well. It doesn't even update properly when I checkout a different branch, everything just stays the same unless I press F5 or restart the application.

It was working fine for me before I updated to 3.3.7 yesterday, but I don't want to downgrade back to the version with the annoying empty local branch name bug :\|

comments: author: mike_entyce_creative
body: Same issues here on 3.3.6


author: Eduardo Enrique Rodriguez Cano
body: Then the best way to fix this issue are apply the previous version?

comments: author: Eduardo Enrique Rodriguez Cano
body: In this case, reinstall the previous version and problem was corrected


author: bablex
body: Same issue 3.3.6.3829  

There's a bug report too <https://jira.atlassian.com/browse/SRCTREEWIN-12578>


author: Michael B?gelund
body: I'm in version 3.3.6.3829 and Windows 10 (1909) I'm still having the same issue with having to refresh using F5, but only for some projects, even though the settings are all the same.

Clean install or removal of projects only works temporally.

I primarily see it affecting the first pane from the left when having multiple projects open.

Just thinking if this issue is worked on or if it's just a quirk we have been living with since 2017.

Was a fix ever found?


author: Lakpriya Srinath
body: Its a bug with the latest update. Please fix this quickly.

comments: author: fzuill
body: Same problem of refresh not working w/ v. 3.3.7

Very problematic. Very troublesome.

I join Lakpriya in suggesting quick fix... this is a show-stopper


author: David Baker
body: It's fixed in 3.3.8: [https://jira.atlassian.com/browse/SRCTREEWIN-12705?focusedCommentId=2342485\&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2342485](https://jira.atlassian.com/browse/SRCTREEWIN-12705?focusedCommentId=2342485&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2342485)


author: fzuill
body: Nice... but that version doesn't seem to be released yet. Not showing up in the options/update tab yet. Will be looking forward to it


author: David Baker
body: There's a 3.3.8 download url in that link


author: fzuill
body: OH YEAH!! that fixed it. Many thanks


author: JeromeAtAILiveSim
body: That's a bummer, how come I couldn't find the update either from sourcetree nor from the website itself in the download section??

This version is dated from 20.1.2020 and today 28.1.2020 with a critical bug making the tool next to impossible to use for the whole team, and there update is just "sitting" for 8 days.

I'm puzzled and frankly quite annoyed about that


author: Piotr Sobotka
body: ![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/79634i5283F864834773B1/image-size/large?v=v2&px=999 "Capture.JPG")

Try tick above, worked for me

comments: author: Kira Resari
body: Did not work for me


author: JeromeAtAILiveSim
body: Not for me either


author: dancaveman
body: already checked and still an issue. This started after the last release.


author: mike_entyce_creative
body: Did not work for me


author: smXplorer
body: Still a bug in 3.4.2...


author: JeromeAtAILiveSim
body: while waiting for a better way, when I close the tab and reopen with "add" my git local repo, then it works normally for a while.. brakes again after a few hours but ..


author: JP
body: What an absolute ballache! Is there no chance of reverting back to a stable branch that still has the dark theme?

Edit: Sorry, I ment to post this as a reply to the initial answer - now I can't delete my answer :( Atlassian software... Flawless as always \*cries in corner\*

comments: author: christhofer-natalius
body: I reinstalled [version 3.2.6](https://product-downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.2.6.exe), it has dark theme, and auto refresh work just fine


author: JP
body: Will give it a try, thanks.


author: JP
body: Can confirm this worked for me, thanks.


author: Lorenzo_Petrone
body: 3.2.6 isn't even able to login for me: it redirects me to localhost instead of to atlassian's site -.-