Git 2 · Undoing changes Find lost commits List where HEAD has been, including commits no branch points to. git reflog Official Git 2 documentation More undoing changes commands Discard changes to a fileUnstage a fileUndo the last commit, keep the changesUndo the last commit and discard the changesRevert a commit safelyPreview untracked files to delete All undoing changes commands · Git 2 cheatsheet ← Revert a commit safelyPreview untracked files to delete →