how to force git to overwrite local files on pull code example Example: git pull hard git reset --hard origin/master