수정한 파일은 Modified 상태가 됩니다. 수정한 파일을 다시 스테이지에 등록한 후 커밋합니다.

    infoh@DESKTOP MINGW64 /e/gitstudy08 (hotfix)

    $ git commit -am "add footer" 등록 및 커밋

    [hotfix c5df346] add footer

    1 file changed, 3 insertions(+)

    다시 index.htm 파일에 <footer> 내용을 추가한 후 커밋합니다.

    infoh@DESKTOP MINGW64 /e/gitstudy08 (hotfix)

    $ 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 2020 reserved by hojinlee

    </footer>

    </body>

    </html>

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