how to scrap local changes and just pull remote branch 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>