100
git diff [<options>] <commit>..<commit> [--] [<path>…]
git diff <commit>...<commit>
git diff --name-only <commit>..<commit>
90
git checkout main git diff branch2
76
git checkout branch_1 # checkout the oldest branch git checkout -b compare-branch # create a new branch git merge --no-commit --squash branch_2 # put files from the new branch in the working folder git status # see file names that changes git diff # see the content that changed.