8.5.2 실습을 위한 충돌 만들기

    실습을 위해 인위적인 충돌 상황을 만들어 보겠습니다. 새로운 footer 브랜치를 만들고 체크아웃합니다.

    infoh@DESKTOP MINGW64 /e/gitstudy08 (master) 기준 브랜치

    $ git checkout -b footer 기준에서 새로운 브랜치 파생

    Switched to a new branch 'footer'

    독립된 footer 브랜치에서 index.htm 파일의 <footer>~</footer> 부분 코드를 수정하고 커밋하겠습니다.

    infoh@DESKTOP MINGW64 /e/gitstudy08 (footer)

    $ code index.htm VS Code 실행

    index.htm

    <!DOCTYPE html>

    <html>

    <head>

    <meta charset="utf-8" />

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Page Title</title>

    </head>

    <body>

    <header>

    <ul>

    <li>깃소개</li>

    <li>깃설치</li>

    </ul>

    </header>

    <h1>hello GIT world!</h1>

    <footer>

    copyright all right 2018 reserved

    by hojinlee

    </footer>

    </body>

    </html>

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