美文网首页
通过git log查看版本演变历史

通过git log查看版本演变历史

作者: 蝌蚪1573 | 来源:发表于2019-05-01 20:45 被阅读0次
  1. 查看历史版本的commit列表
    git log --oneline

    image.png
  2. 查看最近的几个commit
    git log -n3

    image.png
  3. --oneline和-n组合运用


    image.png
  4. 查看当前分支的历史
    git log

    image.png
  5. 查看所有分支的版本演进历史
    git checkout -b temp 836e46c #基于836e46c节点创建新的分支

    image.png
    git log --all
    image.png
  6. 使用图形化界面查看分支历史版本演进
    git log --all --graph

    image.png
  7. 使用--oneline、-n和--all组合查看历史分支版本演进
    git log --all --oneline -n4

    image.png
  8. 使用--oneline、-n、--graph和--all组合查看历史分支版本演进
    git log --all --oneline -n5 --graph

    image.png
  9. 查看指定分支的历史版本演进


    image.png

相关文章

网友评论

      本文标题:通过git log查看版本演变历史

      本文链接:https://www.haomeiwen.com/subject/dcbwnqtx.html