git pull lates form remote discard local code example Example: git remove my local changes and pull from master git reset --hard <your commit hash key>