View differences of branches with meld?

后端 未结 8 717
终归单人心
终归单人心 2020-11-30 16:30

I know that I can view the difference between HEAD and current state with meld .. But how can I view the differences between branches, for example master<

8条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 17:14

    I think a easy way for doing this is using git reset --soft:

    Goal: compare differences between branch_a and branch_b with meld

    git checkout branch_a
    git checkout -b do_diff
    git reset --soft branch_b
    meld .
    

提交回复
热议问题