github에서 신규 repository를 생성한다.

터미널로 올리고자 하는 root 디렉토리로 이동한다.

디렉토리를 초기화 한다
$ git init

$ git add .
$ git commit -m "첫 커밋"

$ git remote add origin url(본인 git주소)
$ git push -u origin master
본인 git주소는 repository의 <>code 버튼을 클릭하면 알 수 있다

업로드 확인하기