Quantcast
Channel: Finding the oldest commit in a GitHub repository via the API - Stack Overflow
Viewing all articles
Browse latest Browse all 7

Finding the oldest commit in a GitHub repository via the API

$
0
0

What is the most efficient way to determine when the initial commit in a GitHub repository was made? Repositories have a created_at property, but for repositories that contain imported history the oldest commit may be significantly older.

When using the command line something like this would work:

git rev-list --max-parents=0 HEAD

However I don't see an equivalent in the GitHub API.


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images