how to delete all changes until the last 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>