git pull and ignore local changes code example Example: git remove my local changes and pull from master git reset --hard