how to discard staged changes in git to untracked files code example Example: how to remove file changes in git git clean -df git checkout -- .