git 충돌 해결
원본 : https://blog.outsider.ne.kr/805
git ours theirs
$ git config --global merge.conflictstyle diff3
$ git checkout --ours CONFLICT_FILE
$ git checkout --theirs CONFLICT_FILE
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 2개
그래서 저 같은 경우에는 확실한 경우에만 사용합니다.
예를 들어
브랜치 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
물론... 제가 사용이 서툴러서 그런 것일 수도... ㅎㅎ
바쁘실 텐데요. 이상한 댓글. 죄송합니다. ㅜㅜ