Github 파일 업로드 총정리

gw07167·2023년 6월 23일

DevOps

목록 보기
1/1

저장소를 처음 만드는 경우

  1. github에 새로운 repository를 만든다
  2. 업로드할 폴더에서 git bash를 연다
$ git init
$ git add .
$ git commit -m "first commit"
$ git remote add origin [원격저장소 주소]
$ git push origin main

저장소가 이미 있는 경우

$ git pull origin main // 생략 가능
$ git add .
$ git commit -m "commit message"
$ git push origin main
profile

0개의 댓글