Git: show diff between branches, ignoring commits merged in

前端 未结 1 903
长情又很酷
长情又很酷 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] ...
    

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

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