English 中文(简体)
如何确定吉特·霍姆存放项目的日期?
原标题:How to find the created date of a repository project on GitHub?
  • 时间:2014-05-12 14:25:48
  •  标签:
  • github

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?

最佳回答

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

https://developer.github.com/v3/repos/#get”rel=“noreferer”

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

JSON有效载荷将暴露出一个created_at member with the UTC 日,即存放地。

考虑到<<>LibGit2Sharp 以上存放处,人们可以看到,该储存是在2011年2月16日Feb:44:49 UTC上建立的。

<>说明: <代码>created_at t 胜数必然反映第一项承诺的日期。 它是在Gite Hub设立存放处的日期。 例如,<代码>xunit/resharper-xunit项目最近是。 www.un.org/Depts/DGACM/index_french.htm

问题回答

<>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"

这里的答案没有外部的gin:

  • 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.

我就此写了一张篮子功能。

# get github repo created time
ghage(){
  gh_url=${1:?usage: ghage https://github.com/owner/repo}
  owner_and_repo="$(echo "${gh_url}" | cut -d "/" -f4-5)"
  created_time=$(curl -s "https://api.github.com/repos/${owner_and_repo}" | jq -r  .created_at )
  echo "${created_time}"
}

例:

$ ▶ ghage https://github.com/torvalds/linux
2011-09-04T22:48:12Z

页: 1

gh安装

gh api repos/{:owner}/{:repository} --jq  .created_at 

如果你重新认证,这也是为了你的私人存放所。

www.un.org/Depts/DGACM/index_french.htm CLI还拥有其他一些ice子。 例如,你可以找到使用你所有储存库的设定日期。

gh repo list -L 999 --json name,createdAt

<代码>-L的编号比您拥有的储存量大一些。

仅看一看在重新抬头时,如热点或README。 然后检查他们的历史。 通常,这些档案不会有太多的承诺,而且你可以很容易地检查那些发现最古老承诺的人所犯下的历史。





相关问题
GitHub SAML SSO ( cloud enterprise)

I wanted to integrate GitHub saml sso for the project. I have a custom IDP and from the SP initiated saml flow, like getting to the https://github.com/orgs/ORG-NAME/sso and then sso getting successful,...

How do I clone a github project to run locally?

I am trying to follow this railscast tutorial for authlogic - and it points to the source here - I have git installed - how do I replicate the source onto my localhost so that I can follow the ...

git push heroku master permission denied on VISTA

(Using Vista)I m trying to clone an app from my GitHub Repository and push it into Heroku. Okay, so I ve tried to create an SSH key so many times with this: `ssh-keygen -t rsa` It seems to go ...

SSH Public key denied on "git clone" command

I am trying to clone a git repo that I forked in my GitHub Repository.It s a rails app. I want to clone it on my local git so that I can push it onto heroku. I generated a set of rsa keys and copied ...

heroku using git branch is confusing!

Ok, so I have a big github project that i m not supposed to merge my little Stacia branch into. However, it seems like Heroku only takes pushing MASTER seriously. It looks like I pushed my branch, but ...