git force checkout to previous revision code example Example: git checkout commit git checkout <commit>