11.2.1 메인 저장소 생성

    먼저 부모 역할의 메인 저장소를 생성합니다.

    $ cd 실습폴더

    $ mkdir gitstudy11_parent 새 폴더 만들기

    $ cd gitstudy11_parent

     

    infoh@DESKTOP MINGW64 /e/gitstudy11_parent (master)

    $ git init 저장소 초기화

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

    메인 저장소( gitstudy11_parent)에 parent.htm 파일을 생성하고 저장합니다.

    infoh@DESKTOP MINGW64 /e/gitstudy11_parent (master)

    $ code parent.htm VS Code 실행

    parent.htm

    <h1>부모 저장소</h1>

    첫 번째 커밋을 합니다.

    infoh@DESKTOP MINGW64 /e/gitstudy11_parent (master)

    $ git add parent.htm 등록

     

    infoh@DESKTOP MINGW64 /e/gitstudy11_parent (master)

    $ git commit -m "parent first" 커밋

    [master (root-commit) 6a9851e] parent first

    1 file changed, 1 insertion(+)

    create mode 100644 parent.htm

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