더북(TheBook)

병합을 삭제했습니다. 이번에는 3-way 병합이 아닌 리베이스 방식으로 두 브랜치를 병합하겠습니다.

infoh@DESKTOP MINGW64 /e/git-rerere (feature)

$ git rebase master 병합

First, rewinding head to replay your work on top of it...

Applying: hello->git

Using index info to reconstruct a base tree...

M hello.htm

Falling back to patching base and 3-way merge...

Auto-merging hello.htm

CONFLICT (content): Merge conflict in hello.htm

Resolved 'hello.htm' using previous resolution.

error: Failed to merge in the changes.

hint: Use 'git am --show-current-patch' to see the failed patch

Patch failed at 0001 hello->git

 

Resolve all conflicts manually, mark them as resolved with

"git add/rm <conflicted_files>", then run "git rebase --continue".

You can instead skip this commit: run "git rebase --skip".

To abort and get back to the state before "git rebase", run "git rebase --abort".

리베이스를 이용한 병합도 이전의 3-way 병합과 동일한 충돌이 발생합니다. 코드 수정이 필요합니다. 하지만 오류 메시지 없이 잘 병합했습니다. 리베이스 메시지를 확인하니 다음과 같이 새로 생긴 메시지가 있네요.

Resolved 'hello.htm' using previous resolution.

이전에 해결한 기록을 이용하여 코드를 수정했다는 의미입니다.