두 브랜치 사이에서 diff를 보고 싶으면
git diff branchA..branchB
를 하면 된다
PR시 diff 가 보이게 되는데 여기서는 two dots이 아닌 three dots diff 비교를 하게 된다

brown에서 green으로 PR을 할 때 view로 보이는 diff는 아래 명령의 결과이다
git diff brown...green
이는 X와 b3을 비교하여 diff에 g1과 g2의 변경 내용은 보이지 않는다.
brown과 green을 각각 feature branch로 볼 때,
이미 black과 green이 머지된 상태에서 brown을 머지할 때 green feature의 변경 내용은 diff로 보지 않는 것이 맞기 때문이다
모든 git service 에서 동일하게 diff view가 구현되어있다
따라서 두 브랜치의 파일을 비교하고 싶을 때 PR에 보이는 view로 비교하면 안된다
https://stackoverflow.com/questions/55479729/github-pull-request-shows-wrong-diff
Github pull request shows wrong diff
I am having two branches: - master and - develop. I am trying to merge branch develop into master branch. I have checked with Tower and Araxis merge, those two branches are identical. But when I ...
stackoverflow.com
'개발업무 > 개발' 카테고리의 다른 글
Spring 실행 윈도우 스크립트 (1) | 2024.01.11 |
---|---|
Nginx reverse proxy 설치 및 구성 (0) | 2023.11.18 |
[MySQL] Three-valued logic: exists / not exists / in / not in (0) | 2023.08.16 |
Express.js timeout 체크리스트 (0) | 2023.05.29 |
PostMessage 사용하기 (0) | 2023.04.13 |