서로 다른 브랜치 모양으로 분기되었습니다. 리베이스를 사용해서 병합해 봅시다. menu 브랜치로 체크아웃합니다.

    infoh@DESKTOP MINGW64 /e/gitstudy08 (master)

    $ git checkout menu 리베이스 브랜치

    Switched to branch 'menu'

    이제 리베이스 명령을 실행합니다. 두 브랜치는 충돌이 발생합니다.

    infoh@DESKTOP MINGW64 /e/gitstudy08 (menu)

    $ git rebase master

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

    Applying: edit menu5

    Using index info to reconstruct a base tree...

    M index.htm

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

    Auto-merging index.htm

    CONFLICT (content): Merge conflict in index.htm 충돌

    error: Failed to merge in the changes.

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

    Patch failed at 0001 edit menu5

     

    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".

    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.