可以在 Github.com 上查看提交或发布的确切时间

我正在使用 github 为学生提交编程作业。我有一个严格的提交截止日期,我想能够检查的时间,他们的发行提交。

不幸的是,github 只报告发布或提交了多少个 几天前。有什么(快速)的方法可以得到确切的时间吗?

44786 次浏览

If you move your mouse over the xx minutes|hours\... ago label, a tooltip will be displayed showing the UTC time the commit was created at.

Keep in mind that Git history can be rewritten (see git commit --amend or git filter-branch commands for instance) and that this displayed time shouldn't be considered as solid proof.

Well I'm jumping into this WAAAYY late, but I wanted to add a note about this particular use case.

nulltoken is absolutely right about the possibility of the times being modified. To circumvent this, I would make use of tags. Slap together a simple script that would pull the branch at the cutoff point, tag it (using an annotated tag), and then push the tag up to github. This gives you a snapshot of the branch at that particular time, stamped the time that the tag was cut AND the name of the tagger. That last part is particularly useful for students who think they are crafty.

https://git-scm.com/book/en/v2/Git-Basics-Tagging

Cheers!