git checkout ins steps code example Example 1: git checkout commit git checkout <commit> Example 2: change branch git git checkout <branch_name>