깃 블로그 만들기(블로그이전)

우 동현·2022년 1월 11일
0

1. repository 생성

Repository name

= username.github.io

  • username이어야함, 사용자 이름과 일치하지않으면 작동 안 할 수 있음

2. clone

  • repository의 HTTPS 주소 복사
  • cmd에서 clone하고 싶은 경로로 이동
  • cmd에서 git clone 복사한 주소
  • 폴더들어가서 클론결과 확인하기

3. index파일 생성

  • cmd에서 (현재위치: clone한 경로)
    cd username.github.io
    echo "Hello World" > index.html
  • index.html 생성 확인하기

4. push

  • cmd에서
    git add --all
    git commit -m "Initial commit"
    git push -u origin main

5. 확인

username.github.io 들어가보기

0개의 댓글