git checkout a commit to the current branch code example Example: git checkout commit git checkout <commit>