I am currently using github desktop. I tried to discard changes to one of the edited files before making a commit. Github returned 'Failed to discard changes' This file may be in use by another application. (I closed all related applications beforehand).
Any clues as to what could be causing this?
Faced the same problem on Github Desktop, tried a lot of things, but finally got issue fixed by running the following commands from powershell.
git rm --cached -r .
git reset --hard
Make sure, you save any uncommitted local changes before running those.
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