how to go to the previous version of git in local repo code example
Example 1: pull old version git
$ git reset --hard 0ad5a7a6
Example 2: pull old version git
git checkout <hash>
cat hello.html
$ git reset --hard 0ad5a7a6
git checkout <hash>
cat hello.html