开发者

Retrieve a time of specific commit in GIT

开发者 https://www.devze.com 2023-03-13 05:45 出处:网络
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:

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

精彩评论

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