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