[Git] Git 블로그 만들기 (1)

이경은·2022년 1월 17일
0

1. Github 블로그 만들기

1) New Repository 생성

2) Repository name은 반드시 username.github.io로 만들기
- README 파일 체크.

3) clone 하기
- 생성된 Repository에서 주소를 clone 해옴.
- 원하는 폴더 위치에 가서 git clone [복사한 주소] 실행

4) 폴더 열기
- README 파일만 존재

5) clone한 폴더로 이동해서 파일 생성

cd username.github.io 
echo "Hello World" > index.html

6) Repository와 remote 연결 (Push)

git add --all 
git commit -m "Initial commit" 
git push -u origin main

7) git repository 연결 확인
- repository에 index.html이 올라와 있다면 성공.

8) 브라우저 주소창에 username.github.io 입력
- 페이지 출력되면 블로그는 완성

profile
Web Developer

0개의 댓글