how to remove change from git status code example Example: undo unstaged changes git git checkout -- .