2.3 Git基础 - 查看提交历史
查看提交历史 在提交了一些更新,又或者克隆了某个项目之后,你也许想回顾下提交历史。完成这个任务最简单而又有效的工具是 git log 命令。 接下来的示例会用我专门用于演示的simplegit项目,运行下面的命令获取该项目源代码: git clone https : / / github . com / schacon / simplegit - progit 然后在此项目中运行 git log ,应该会看到以下的输出: $ git log commit ca82a6dff817ec66f44342007202690a93763949 Author : Scott Chacon < schacon @gee - mail . com > Date : Mon Mar 17 21 : 52 : 11 2008 - 0700 changed the version number commit 085 bb3bcb608e1e8451d4b2432f8ecbe6306e7e7 Author : Scott Chacon < schacon @gee - mail . com > Date : Sat Mar 15 16 : 40 : 33 2008 - 0700 removed unnecessary test commit