除了解析日期字符串的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