It works, I did git reset 'HEAD@{1}' to undo git reset --soft HEAD~1
git reset 'HEAD@{1}'
git reset --soft HEAD~1