how to undo the changes of others in git before commit code example
Example 1: git delete changes
git clean -df
git checkout -- .
Example 2: git remove my local changes and pull from master
git reset --hard <your commit hash key>
git clean -df
git checkout -- .
git reset --hard <your commit hash key>