git how to go back commits in a branch code example
Example 1: how to revert to log in git
git revert --no-commit 0766c053..HEAD
git commit
Example 2: move a branch back in git
git checkout A
git reset --hard B
git push --force github
git revert --no-commit 0766c053..HEAD
git commit
git checkout A
git reset --hard B
git push --force github