수색…


수동 해상도

git merge 를 수행하는 동안 git은 "merge conflict"오류를보고합니다. 어떤 파일에 충돌이 있는지 알려주므로 충돌을 해결해야합니다.

git status 는 언제든지 유용한 메시지로 편집이 필요한 것을 볼 수 있습니다.

On branch master
You have unmerged paths.
  (fix conflicts and run "git commit")

Unmerged paths:
  (use "git add <file>..." to mark resolution)

    both modified:      index.html

no changes added to commit (use "git add" and/or "git commit -a")

힘내라는 파일에 마커를 남겨두고 충돌이 발생한 곳을 알려줍니다.

<<<<<<<<< HEAD: index.html #indicates the state of your current branch
<div id="footer">contact : [email protected]</div>
========= #indicates break between conflicts
<div id="footer">
please contact us at [email protected]
</div>
>>>>>>>>> iss2: index.html #indicates the state of the other branch (iss2)

충돌을 해결하려면 <<<<<< 및 >>>>>>> 마커 사이의 영역을 적절히 편집하고 상태 줄을 제거해야합니다 (<<<<<<<, >>>>> >>, 그리고 ======== 줄). 그런 다음 git add index.htmlgit add index.html 하여 해결 된 것을 표시하고 git commit 을 수행하여 병합을 마칩니다.



Modified text is an extract of the original Stack Overflow Documentation
아래 라이선스 CC BY-SA 3.0
와 제휴하지 않음 Stack Overflow