
파일을 병합하려고 하면 다음과 같은 메시지가 나타납니다.
$ git merge origin/develop
Removing t/table_statistic_grains_test.t
Removing t/table_statistic_grains_calllog.t
Removing t/table_statistic_grains_accession.t
Auto-merging t/table_donor_document.t
Auto-merging install.sh
CONFLICT (content): Merge conflict in install.sh
하지만 해당 목록을 잃어버리고 병합을 완료하려고 하면 얻을 수 있는 것은 다음과 같습니다.
$ git merge
error: 'merge' is not possible because you have unmerged files.
hint: Fix them up in the work tree,
hint: and then use 'git add/rm <file>' as
hint: appropriate to mark resolution and make a commit,
hint: or use 'git commit -a'.
fatal: Exiting because of an unresolved conflict.
--abort
다시 시도 하지 않고 해당 목록을 다시 가져오려면 어떻게 해야 합니까 merge
?
답변1
"install.sh" 파일에서 git mergetool을 사용하거나 편집기에서 편집하여 파일을 수동으로 병합해 보세요. 그런 다음 병합된 파일을 인덱스에 추가하고 커밋해야 합니다. 이제 당신은 다른 일을 할 수 있는 기회를 갖게 될 것입니다.
git mergetool install.sh
git add install.sh
git commit -a