Git: show diff between branches, ignoring commits merged in

前端 未结 1 904
长情又很酷
长情又很酷 2021-02-15 18:29

My repository history looks something like this:

         x---y-+-z-+-branch
        /     /   /
---a---b---c-+-d-+-e---master

I want to get a

相关标签:
1条回答
  • 2021-02-15 19:04

    The command you are looking for is:

    git diff master...branch
    

    From git help diff:

    git diff [--options] <commit>...<commit>
    

    This form is to view the changes on the branch containing and up to the second

    0 讨论(0)
提交回复
热议问题