how to git pull and override local changes with remote code example Example: how to pull and overwrite local changes git git fetch --all git reset --hard origin/master