Useful snippets

    Undo `git reset --soft HEAD~1` with reflog

    https://useful-snippets.netlify.app/posts/git-reset-soft/

    https://useful-snippets.netlify.app/posts/undo-soft-reset/

    1. git reflog find commit before reset
    2. git checkout <commit>
    3. git log verify that this commit includes the resetted commit
    4. git branch --force <original-branch-name>
    5. git checkout <original-branch-name>

    References