git pull origin master show changes would be overwritten code example Example: how to pull and overwrite local changes git git fetch --all git reset --hard origin/master