Using VS 2013, I have made a change to a file, successfully committed and pushed to the server. When I go to change to a different branch, I get the following error:
Cannot switch to CM because there are uncommitted changes. Commit or undo your changes before you switch branches. See the Output window for details.
The output window of course shows the file I just committed and pushed. There are no files listed in the "Changes" area.
SourceTree shows no unstaged files and lets me change branches without a problem.
Any ideas?
It sounds weird, but last time I got this error message, all I had to do was physically remove the conflicted file and click on the "clear all" button of the output window. Until I cleared the error message, the bug continued.
In my case however I was doing a Pull, but the error message was the same (system claims to be pending commits but the change window is empty).
I tried the other two answers, no fix.
But here's what I tried that I believe made it reset itself in my case:
This should reset the state of the file and make it forget that there's a change on the file.
Now, you can simply switch or pull or do whatever was being blocked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With