I've tried to revert to a desired file state for an android project by using git checkout .
as well as through invalidating the cache in IntelliJ, to no avail.
How do I fix this behavior?
I've tried to revert to a desired file state for an android project by using git checkout .
as well as through invalidating the cache in IntelliJ, to no avail.
How do I fix this behavior?
A git reset --hard should have been enough, but you might have untracked files.
For that, see "How do I clear my local working directory in Git?"
git clean -d -x -f
In both cases, make sure you don't have any work in progress (or save it) *before typing any of those commands.
If you are using Android Studio and your project is connected through VCS it's simple to revert your file by doing this:
Hope this will help.