除了解析日期字符串的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 commit -m vs git commit -am
- 3. git commit integrity
- 4. git-svn dmitmiting git commit
- 5. git commit的--date参数的格式是什么
- 6. Git commit bash脚本
- 7. SLOC在git commit
- 8. Git commit问题
- 9. 撤消git commit
- 10. Git revert lastet commit
- 11. Git submodule commit
- 12. Git pre-commit hook
- 13. Git commit命令
- 14. Aptana 3 git commit
- 15. Git commit patches
- 16. Git commit id lost
- 17. git find fat commit
- 18. TDD&Git commit comments
- 19. git commit problems
- 20. git commit - 格式?
- 21. Git post commit mails
- 22. git commit directory
- 23. 删除git commit
- 24. (git add -A后跟git commit)和git commit -a之间的区别?
- 25. 结合git add。和git commit
- 26. git commit中断时区
- 27. git commit to github repo
- 28. Git rebase to older commit
- 29. Xcode git commit崩溃
- 30. git commit to all branches
好东西其中给出:https://git-scm.com/docs/ pretty-formats – 2016-03-01 05:38:03