I'm trying to resolve merge conflicts 'using theirs' but it keeps returning the error:
"Could not update one or more files, please check that no other application is locking your files."
Eventhough all other programs are closed and not using the files it returns this error.
I can try and resolve them one by one but this will take forever because there are more then 70 merge conflict items.
I'm using the latest sourcetree version 2.1.2.5.
Running Windows 10 Home
Any help would be appreciated.
For me it seems like this happened with the "theirs" change being a delete, so "resolving using theirs" should delete the file. I worked around it by marking the files as resolved then deleting them manually.
Also in my case was because of a deleted file. Your comment was helpful, thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using SourceTree 2.1.11.0 / Windows 7
Same root problem here, restarted machine checked status of files (they were not locked by another process or marked as read only)
The only way I was able to resolve is to use TortoiseGet and resolve "Using mine'
Of course SourceTree lost the mergeconflix message that was previously nicely populated in my window. Overall I'm very disappointed in SourceTree, very slow performance, locks regularly, and provides unfortunate situations like this on a monthly basis. These tools should be rock and not require me to look for other solutions/workarounds for core functionality.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Before trying to resolve merge conflicts 'using theirs' or 'using mine', execute this comment in git bash.
rm -f .git/index.lock
After that we can able to resolve conflicts in stash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And this bug is still relevant in October 2021. Sourcetree still claims a file is locked when we try to merge resolution "theirs" for a deleted file.
No, Atlassian programmers! The folder was deleted, the file is not locked! That's why you were able to resolve the other 5 deleted files in the same folder as deleted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same issue using 2.3.1.0 on Windows 7.
Perhaps this will help find the problem...
On all the files that I tried to "Resolve using theirs", I tried using "Resolve using mine" and I did not get the error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
same issue can't do anything
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Otabek, did you find a solution or workaround?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.