git pull and discard all local 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