git remove changes and pull latest changes 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
git reset --hard HEAD
git reset --hard