remove all changes and pull git code example
Example 1: disregard incoming git pull and return to last commit
git reset --hard HEAD
Example 2: git remove my local changes and pull from master
git reset --hard <your commit hash key>
git reset --hard HEAD
git reset --hard <your commit hash key>