git log
查看远程分支的变动情况。
$ git log remote/branch
上面代码中,-i
参数表示搜索时忽略大小写。
$ git log origin/master..new
美化输出。
- —graph commit之间将展示连线
- —decorate 显示commit里面的分支
- —pretty=oneline 只显示commit信息的标题
- —abbrev-commit 只显示commit SHA1的前7位
bbb2222 A second commit
aaa1111 A first commit
9999999 (master) Old stuff on master