git查看提交历史

引用

http://git-scm.com/book/zh/Git-%E5%9F%BA%E7%A1%80-%E6%9F%A5%E7%9C%8B%E6%8F%90%E4%BA%A4%E5%8E%86%E5%8F%B2


 git log 

git log -n :-n 查看多少条记录

git log -p -2 #-p选项展示每次提交内容的差异

git log --stat #stat仅显示简要的增改行数统计

git log --pretty #可以指定使用完全不同于默认格式的方式展示提交历史,比如oneline讲每个提交放到一行展示git log --pretty=oneline,还有short full fuller等

最有意思的是format,具体参数去google上查。

git log --since 和--until 用于过滤关于时间的提交历史记录。

gitk 图像界面

原文地址:https://www.cnblogs.com/slogeor/p/3758151.html