Undo `git reset --soft HEAD~1` with reflog
git reflogfind commit before resetgit checkout <commit>git logverify that this commit includes the resetted commitgit branch --force <original-branch-name>git checkout <original-branch-name>
References