git log

    查看远程分支的变动情况。

    1. $ git log remote/branch

    上面代码中,-i参数表示搜索时忽略大小写。

    1. $ git log origin/master..new

    美化输出。

    • —graph commit之间将展示连线
    • —decorate 显示commit里面的分支
    • —pretty=oneline 只显示commit信息的标题
    • —abbrev-commit 只显示commit SHA1的前7位
    1. bbb2222 A second commit
    2. aaa1111 A first commit
    3. 9999999 (master) Old stuff on master