How to find the created date of a repository project on GitHub?

Github

Github Problem Overview


How can I find the created date of a project on GitHub?

Basically, I have to find the first commit to see the created date, however, some projects have 500 commits, which wastes a lot of time trying to get to the first commit page.

Is there a quicker way to get the created date?

Github Solutions


Solution 1 - Github

> How can I find the created date of a project on GitHub?

Use the Repos GitHub API to retrieve this information

  • Syntax: https://api.github.com/repos/{:owner}/{:repository}
  • Example: https://api.github.com/repos/libgit2/libgit2sharp

The JSON payload will expose a created_at member with the UTC date the repository was created.

Considering the LibGit2Sharp repository above, one can see that it's been created on Feb, 2nd 2011 at 16:44:49 UTC.

Note: The created_at won't necessarily reflect the date of the first commit. It's the date the repository has been created on GitHub. For instance, the xunit/resharper-xunit project was recently moved from codeplex to GitHub. The created_at date is 2014-05-01T11:17:56Z, but the most of the commits date back much more farther than that.

Solution 2 - Github

If you are not interested in the exact creation date, and just would like to know how old a repo roughly is. You can go to Insights, then Contributors. For example, first commit for react was pushed on May 26 2013.

Solution 3 - Github

@nulltoken's answer is very useful. To make it even more convenient, I decided to create a chrome extension for displaying a date of creation of a repository.

Highlights

  • Beautiful calendar icon in the summary bar on a repository page
  • Customizable date format followed Moment format pattern
  • Best performance by storing all fetched URIs in the Storage

Date of creation of a repository is displaying on the summary bar:

landpage

Date format is customizable by clicking at the extension icon:

option

This's working really well for me. I hope it's useful for you as well.

Solution 4 - Github

I've written a bookmarklet for this, It may come in handy. You can even know the details of private or private - organization repositories with a simple workaround.

GitHub repository size, creation date bookmarklet | Source Code

enter image description here

Solution 5 - Github

Syntax:

curl -s https://api.github.com/repos/{:owner}/{:repository} | jq '.created_at'

Example:

curl -s https://api.github.com/repos/NabiKAZ/video2gif | jq '.created_at'

Result:

"2017-04-22T22:58:47Z"

Solution 6 - Github

You can also use Github's new GraphQL API:

query { 
  repository(owner: "graphql", name: "graphql-js") {
    name
    createdAt
  }
}

Solution 7 - Github

Here's the answer without external plugins:

  • Click on your Profile (top right) and select Settings
  • In your Settings page, Click the Security log option in the Sidebar.
  • You should able to see all your repositories on the right
  • Hover on the date displayed to show the full date and time in a tooltip.

Solution 8 - Github

I created a user script that shows the creation date directly on the GitHub page of the repo: https://openuserjs.org/scripts/cosenal/GitHub_Repo_Dates

Solution 9 - Github

Just look for the most likely files that would be created when the repo is initially setup such as gitignore or README.md. Then check their history. Normally these files will not have a lot of commits and you can easily check the commit history on those to find the oldest commit.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionlvarayutView Question on Stackoverflow
Solution 1 - GithubnulltokenView Answer on Stackoverflow
Solution 2 - GithubzachguoView Answer on Stackoverflow
Solution 3 - GithublvarayutView Answer on Stackoverflow
Solution 4 - Githubvicke4View Answer on Stackoverflow
Solution 5 - GithubNabi K.A.Z.View Answer on Stackoverflow
Solution 6 - GithubrockyView Answer on Stackoverflow
Solution 7 - GithubDexterView Answer on Stackoverflow
Solution 8 - GithubAlessandro CosentinoView Answer on Stackoverflow
Solution 9 - GithubJohannView Answer on Stackoverflow