除了解析日期字符串的git日志,是否有一种Git本地方式来报告某个提交的日期?Git commit date
121
A
回答
168
17
如果你想看到的只是你会做一个标签的日期:
git show -s --format=%ci <mytagname>^{commit}
这给:2013-11-06 13:22:37 +0100
或做:
git show -s --format=%ct <mytagname>^{commit}
这给UNIX时间戳:1383740557
7
如果你想有没有时区,但当地时区的时间戳记做
git log -1 --format=%cd --date=local
这取决于你的位置
Mon Sep 28 12:07:37 2015
相关问题
- 1. 在webpack中包含git commit hash和date
- 2. git-svn dmitmiting git commit
- 3. Git commit bash脚本
- 4. Aptana 3 git commit
- 5. Git post commit mails
- 6. git commit problems
- 7. 删除git commit
- 8. git commit - 格式?
- 9. SLOC在git commit
- 10. git find fat commit
- 11. Git commit命令
- 12. git commit directory
- 13. git post-commit钩子
- 14. git commit to github repo
- 15. git fast-forward one commit
- 16. git commit queue工具
- 17. git commit sublime text 2
- 18. 撤消git commit --amend
- 19. git commit抛出错误'[< - '
- 20. ^在Git commit消息中的M个字符(git commit -v)
- 21. 如何在git推后执行git commit?
- 22. git add→git commit。这是正确的吗?
- 23. 什么做“git checkout \ *”和“git commit - ”完成?
- 24. 删除第一个git commit
- 25. 恢复以前的git commit?
- 26. Git commit count count a day
- 27. 如何中止'git commit --amend'?
- 28. 使用git commit -a和vim
- 29. 为Redmine设置git commit hook
- 30. 如何搜索git commit comments?
好东西其中给出:https://git-scm.com/docs/ pretty-formats – 2016-03-01 05:38:03