git checkout previous version code example
Example 1: pull old version git
$ git reset --hard 0ad5a7a6
Example 2: git checkout previous commit
git reset --hard HEAD~10
To rollback 10 commits back:
Example 3: git checkout previous commit
$ git reset --hard <commit_id>
Example 4: pull old version git
git checkout <hash>
cat hello.html