我正在尝试使用API计算许多大型githubrepos的提交,因此我想避免获取整个提交列表(以这种方式为例:api.github.com/repos/jasonrudolph/keyboard/commits)并计算它们。如果我有第一个(初始)提交的哈希,我可以usethistechniquetocomparethefirstcommittothelatest它很高兴地以这种方式报告中间的total_commits(所以我需要添加一个)。不幸的是,我看不到如何使用API优雅地获得第一次提交。基本repoURL确实给了我created_at(这个url是一个例子:api.github.c