git go to previous version code example Example: git pull from previous commit git checkout -b old-state 0d1d7fc32