4.2.1 새 파일 생성

    실습을 위해 간단한 HTML 파일을 하나 작성합니다. 에디터를 이용하여 코드를 작성하면 됩니다. 필자는 VS Code를 이용하겠습니다.

    $ mkdir gitstudy04 새 폴더 만들기

    $ cd gitstudy04 만든 폴더로 이동

    $ git init 저장소를 깃으로 초기화

    Initialized empty Git repository in E:/gitstudy04/.git/

     

    infoh@hojin MINGW64 /e/gitstudy04 (master)

    $ code index.htm VS Code를 사용하여 파일 작성

    index.htm은 다음과 같이 작성합니다.

    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>

     

    </body>

    </html>

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