revert a branch to a previous commit code example
Example 1: get back some commits git
git revert {commit_id}'
Example 2: reset to commit
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit
git revert {commit_id}'
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit