git quickly check out older commits code example Example 1: pull old version git $ git reset --hard 0ad5a7a6 Example 2: git checkout commit git checkout <commit>