git查看历史命令

1 git show

git show 分支名/HEAD/hash值


2 git log参数

--oneline 单行信息
--decorate 输出commit引用信息
--graph 图形化输出
--al 输出所有分支


3 git diff 使用
比较两个commit不同
git diff commit1 commit2

比较具体单词不同

git diff --color-words

git diff --word-diff

posted on 2015-11-06 22:57  c3tc3tc3t  阅读(1256)  评论(0编辑  收藏  举报