简体   繁体   中英

git diff between branches but ignoring the effect of certain commits

We have 2 branches

  • master
  • branchX

BranchX was created to solve some compatibility problem, where a about 10 files had to be changed.

Development on master continues and at a certain stage, I want to check what will change when we merge master into branchX.

What command should I use so that I can check that all merges have been done (except for the modifications on these 10 files)

$ git diff branchX...master

请注意,它是三个点,它获得了branchX和master的公共ancester与master本身之间的区别。

You could do by rewind to the first commit and cherry-picking all those commit that you are interested. Please, check the code on this answer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM