going back to commit git code example
Example 1: revert commit git
git revert <commit hash>
Example 2: git pull from previous commit
git checkout -b old-state 0d1d7fc32
git revert <commit hash>
git checkout -b old-state 0d1d7fc32