Git merge 를 수행하는경우 conflict 가 나는 경우가 있다. 이때는 일일이 Conflict 를 수정해도 되지만, 현재 branch 나 merge 대상인 branch 의 내용을 바로 적용하면 이런 conflict 를 일괄적으로 수행하게 할 수 있다.

# git merge -X<option> <branch>
# option = ours, theirs 등등

# ex)
# -Xtheris 로 실행하면 현재 branch 와 conflict 가 발생할경우 otherBranch 브랜치 내용으로 적용
$ git merge -Xtheris otherBranch

참고
https://git-scm.com/book/ko/v2/Git-%EB%8F%84%EA%B5%AC-%EA%B3%A0%EA%B8%89-Merge
https://git-scm.com/docs/merge-strategies

Posted by leechwin
,