how to undo all unstaged changes in git code example Example 1: what to do with unstaged changes after reset git reset --hard Example 2: git delete unstaged files git clean -df