git之日志查看:
git log
这将显示所有提交历史(从最新提交 开始)
git log <commit-hash>
这将显示指定提交及其祖先的提交历史(从commit-hash开始到过去的提交)
git show <commit-hash>
这将显示指定提交的详细信息,包括提交的作者、日期、提交消息以及具体的修改内容
git之日志格式化查看:
git log --format=fuller
返回如下结构
Author: tom <tom@example.com>
AuthorDate: Wed Nov 6 10:00:00 2025 +0800
Commit: alice <alice@example.com>
CommitDate: Thu Nov 7 11:00:00 2025 +0800
...
...
