git 충돌 해결 > Git

Git

git 충돌 해결 정보

git 충돌 해결

본문

추천
4
  • 복사

댓글 2개

merge 대상이 1:n 일 때 충돌난 코드를 모두 써야 하는 경우 --ours 나 --theirs 만으로 처리하기 어렵습니다.
그래서 저 같은 경우에는 확실한 경우에만 사용합니다.

예를 들어

브랜치 master
it_name, it_sc_type,

브랜치 weit
it_name, it_weit, it_sc_type,

브랜치 tag
it_name, it_auth, it_sc_type,

처럼 있을 때

master < weit, master < tag 순으로 merge 를 실행하면

it_name, it_weit, it_sc_type, 과
it_name, it_auth, it_sc_type, 가 충돌이 날 수 있습니다.

이 때 --ours 나 --theirs 를 쓰게 되면,
it_weit, 나 it_auth 둘 중 하나는 잃게 됩니다.

https://github.com/whitedot/minsupkr-plugin/commit/da082ac34826b94a1a1b0a0cd899bec8c5e7c9e0#diff-a631b0863105ddffd9e3e4d5bb1f71fb

물론... 제가 사용이 서툴러서 그런 것일 수도... ㅎㅎ
© SIRSOFT
현재 페이지 제일 처음으로