pull a previous git commit code example
Example 1: git pull from previous commit
git checkout -b old-state 0d1d7fc32
Example 2: get back some commits git
git revert {commit_id}'
git checkout -b old-state 0d1d7fc32
git revert {commit_id}'