how to clear local changes in file git code example Example: clear local changes in git git checkout .