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