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