git reset from commit to code example
Example 1: undo reset commit git
git reflog //to get commitID
git reset #commitID
Example 2: how to reset git branch to a certain commit.
git revert --no-commit 0766c053..HEAD
git commit
git reflog //to get commitID
git reset #commitID
git revert --no-commit 0766c053..HEAD
git commit