Reset Published: 2022-08-26 Updated: 2024-06-02 Reset to current head and discard all including stash 🔗 git reset --hard Undo accidental reset 🔗 Source: https://stackoverflow.com/questions/5788037/recover-from-losing-uncommitted-changes-by-git-reset-hard git reflog show then use the HEAD@{?} and replace the question mark like git reset HEAD@{1}