I have a modified file in a Git working directory which I want to discard. This file is not in a submodule.
I tried 3 different commands and nothing helped.
git checkout -- <file>,or git checkout <file>git reset HEAD --hardgit stash save --keep-index
How to discard that file?
Screenshots:
