git + revert all changes made to local code example Example 1: git delete changes git clean -df git checkout -- . Example 2: revert unstaged changes git git checkout -- .