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