Show differences between two branches
git compare two branches | what is different in this branch compared to main | which files will the merge change | git | diff | branchgit diff --stat main...feature/contact-formCompares the branch with the common ancestor of both branches (three dots) and lists changed files with the number of added and removed lines. This shows exactly what a merge would bring in, without changes made on the target branch. Without --stat, the full diff is shown.
Note: With two dots (main..feature), the two branch tips are compared directly, so changes made only on the target branch appear as well.
Also searched as
- git compare two branches
- what is different in this branch compared to main
- which files will the merge change