git how to remove all changes of a file code example Example: how to remove file changes in git git clean -df git checkout -- .