SourceTree keeps reseting staged files with 1.9.6
Asked by Mark Lear:

After installing SourceTree 1.9.6 on windows 10 (not anniversary update) and I attempt to stage a file it always unstages all files (even if they were previously staged with the terminal). It seems to be attempting to stage, which is failing with an "Unable to create" on the .git/index.lock file as it thinks the file already exists. I have confirmed it does not exist.


Answers:
author: Rodney
body: Hello,

I just encountered your problem of files unstaging in SourceTree 1.9.6 on windows 10 (with anniversary update). My fix is downgrading to 1.9.5. So if you need the fixes 1.9.6 provides then my answer won't be helpful sorry.

(Incidently my workaround on the crashing on start with 1.9.5 is to run SourceTree as administrator.)

Update:

I found out that using the "No staging" interface works but "Split view staging" doesn't.

Update2:

Version 1.9.6.1 seems to have addressed this problem


author: jswigart
body: I'm getting the same issue. Try to stage a file, and it errors out immediately with an error about the index.lock, and if I restart Sourcetree after deleting the index.lock file, sometimes Sourcetree removes and attempts to stage the entire local repository, resulting in a cascade of similar index.lock errors as it does whatever it is doing to all the files. There is no hung instance of git still running that justifies this error, and downgrading to 1.9.5 gets rid of the error. 1.9.6 seems outright broken.


author: Hans Orbaan
body: Can someone point to a previous version download? This issue is blocking me from working at the moment...

Answering my own question: <https://www.sourcetreeapp.com/update/windowsupdates.txt>

Links to all versions in that file.

comments: author: Jim Van Tongerloo
body: Thanks, does this work for you?

Have the exact same problem on Windows 7


author: Hans Orbaan
body: Yes, I removed 1.9.6.0 and installed 1.9.5.0:

```
http://downloads.atlassian.com/software/sourcetree/windows/SourceTreeSetup_1.9.5.0.exe
```


author: ajmedway
body: Having a boatload of issues myself with this version. I downloaded/tried to install 1.9.5.0 from the link above but I get error:

*"A more recent version of SourceTree is already installed on this computer."*

So not possible to revert to previous version. How can I get around this?


author: Hans Orbaan
body: Just uninstall the 1.9.6.0 by the "uninstall a program" tab from the configuration panel.


author: ajmedway
body: But will that wipe out all of my config/repos and bookmarks?!


author: Hans Orbaan
body: No, it will not.


author: Jim Van Tongerloo
body: Thanks, will try this evening.


author: Erik Petterson
body: Just updated to 1.9.6 this morning. Same problem. Totally unusable. How is there no testing going onbefore updates are shipped?


author: jswigart
body: Had to go back to 1.9.5 as well to fix the issue. Command line git was working fine with 1.9.6, so seems to be something with the app.


author: Erik Petterson
body: downgrading to version 1.9.5 fixed this issue.. alternately switching to gitkraken would fix the issue ![cheeky](/html/@FAF1B8ED81FE63CF2DF635B2383CF9FB/images/emoticons/cheeky.png "cheeky")


author: Max_Bergmann
body: Same here. Couldn't stage anything without an error on Win7 with 1.9.6 . Going back to 1.9.5 "fixed" it for now.


author: Jim Bacon
body: Same issue. Windows 7. Using git in the console works fine.


author: Arash Khodadadi
body: Can you please have some integration tests or testers to prevent such major issues?!

I cannot believe you never tested staging a file and released a new version!!


author: gerald.wilborn
body: Same problem on Windows 10 with v1.9.6. Maddening.


author: Tobias Abstreiter
body: 1.9.6 not usable under Windows 7 Enterprise. No difference between internal and external git.


author: thvig
body: Windows 7 also