로컬 워크스페이스를 git에 올리기

ZOO4WE·2023년 4월 3일
0
  1. github에서 신규 repository를 생성한다.

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

  3. 디렉토리를 초기화 한다

$ git init

  1. 올릴 파일을 listup한다.
$ git add .
  1. local repository에 프로젝트를 올린다.
$ git commit -m "첫 커밋"

  1. remote repository를 등록 후, 원격 repository에 프로젝트를 올린다.
$ git remote add origin url(본인 git주소)
$ git push -u origin master

본인 git주소는 repository의 <>code 버튼을 클릭하면 알 수 있다

업로드 확인하기

profile
직장인 K씨의 개발스러운 일일

0개의 댓글