git checkout *your commit ID here* And when you want to go back git checkout *Up to date commit ID here*