how to revert master to older commit code example
Example 1: how to revert to log in git
git revert --no-commit 0766c053..HEAD
git commit
Example 2: git command change to previous comit
git reflog
git checkout HEAD@{...}
git revert --no-commit 0766c053..HEAD
git commit
git reflog
git checkout HEAD@{...}