-
查看历史版本的commit列表
git log --oneline
image.png
-
查看最近的几个commit
git log -n3
image.png
-
--oneline和-n组合运用
image.png
-
查看当前分支的历史
git log
image.png
-
查看所有分支的版本演进历史
git checkout -b temp 836e46c
#基于836e46c节点创建新的分支
image.png
git log --all
image.png
-
使用图形化界面查看分支历史版本演进
git log --all --graph
image.png
-
使用--oneline、-n和--all组合查看历史分支版本演进
git log --all --oneline -n4
image.png
-
使用--oneline、-n、--graph和--all组合查看历史分支版本演进
git log --all --oneline -n5 --graph
image.png
-
查看指定分支的历史版本演进
image.png
网友评论