12.1.1 실습 환경 준비

    먼저 refs 기능을 학습할 수 있도록 실습 환경을 만들겠습니다. 저장소를 생성합니다.

    $ cd 실습폴더

    $ mkdir gitstudy12 새 폴더 만들기

    $ cd gitstudy12

     

    infoh@DESKTOP MINGW64 /e/gitstudy12 (master)

    $ git init 깃 초기화

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

    index.htm 파일을 생성합니다.

    infoh@DESKTOP MINGW64 /e/gitstudy12 (master)

    $ code index.htm VS Code 실행

    index.htm

    hello world

    간단한 인사말만 작성했습니다. 저장한 후 커밋합니다.

    infoh@DESKTOP MINGW64 /e/gitstudy12 (master)

    $ git add index.htm 등록

     

    infoh@DESKTOP MINGW64 /e/gitstudy12 (master)

    $ git commit -m "first" 커밋

    [master (root-commit) d0943cf] first

    1 file changed, 1 insertion(+)

    create mode 100644 index.htm

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