roll back to previous git code example
Example 1: git pull from previous commit
git checkout -b old-state 0d1d7fc32
Example 2: reset to commit
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit
git checkout -b old-state 0d1d7fc32
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit