简体   繁体   中英

How to get all commits in GitHub?

I'm using GitHub API to get Commits.

GET /repos/:owner/:repo/commits

https://api.github.com/repos/nasa/mct/commits?branch=incoming&since=2014-08-26T23:43:48Z

For example, owner:nasa project:mct

I want to get all commits in branch:incoming and since that time.But it seems only returns one commit(should be 9 commits).What can I do?

I've got it.I should check Github API more carefully.

You can use pagination to get what you want.

By default,It only displays the default number of items.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM