how to remove unstaged changes from one file code example
Example 1: git delete changes
git clean -df
git checkout -- .
Example 2: revert unstaged changes git
git checkout -- path/to/file/to/revert
git clean -df
git checkout -- .
git checkout -- path/to/file/to/revert