Useful snippets

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

    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