git remove all local changes and pull from remote 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>