clone repo based on commit code example Example: clone at a given commit github git checkout <commit_sha>