开发者

Retrieve a time of specific commit in GIT

Does anybody know how to retrieve a time of specific开发者_如何学C commit in GIT? I want to use it to display in my app build.


Here:

$ git log --pretty="%h %ad %ar" -1 0805c6f9635d77ece39cd5070a86e3ae8d889d0e

0805c6f Thu Jun 16 15:22:16 2011 +0200 19 minutes ago

The -1 will limit the amount of results to one. To get just the date remove the %h and the %ar from the log format.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜