Know how to get all commits and checkout a commit