0

I want to retrieve ALL commits from Github using Git Statistics API:

GET /repos/:owner/:repo/commits

I tried to use curl https://api.github.com/repos/:owner/:repo/commits but it does not show me ALL commits, but a few latest. Is there a way to just retrieve the entire list of commits?

1

1 Answer 1

2

You need to follow "Traversing with Pagination" in order to retrieve all commits, because the result of such a commit query will be most likely paginated.
That is detailed in "Improved pagination for the Repository Commits API" (May 2014)

That would avoid sending back a result too big in one answer over http.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.