【发布时间】:2016-12-02 16:18:29
【问题描述】:
我正在尝试以 JSON 格式检索提交历史记录并在 txt 文件中输出。
curl https://api.github.com/repos/username/repo/commits > commitHistory.txt
通过上面的 curl 推荐,我只得到了提交历史的第一页。我想检索完整的提交历史记录,或者在执行此操作时设置日期范围。我该怎么做?
【问题讨论】:
-
有什么原因不能克隆存储库而只能克隆
git log remotes/branch?如果您尝试编写此脚本,查看parsing JSON with UNIX tools 可能会有所帮助。
标签: json git curl github github-api