how to remove one modified files before commit in git code example
Example 1: git undo all changes
git reset --hard
Example 2: revert unstaged changes git
git checkout -- .
Example 3: git discard staged changes
git reset HEAD
git checkout .
Example 4: git remove my local changes and pull from master
git reset --hard <your commit hash key>