[Github] Visual Studio Code에서 Github 업로드하기(간단정리)

JO_CHOI·2021년 3월 21일
1

Github

목록 보기
1/1
  1. GitHub에서 repository 생성

  2. 해당 repository의 URL복사

  3. vscode에서 Source Control 아이콘 클릭

  4. Initialize Repository 버튼 클릭(로컬 repository 초기화)

  5. CHANGES의 '+'버튼 클릭(모든 파일 추가)

  6. Commit(체크모양) 아이콘 클릭

  7. Commit 내용 입력 후 엔터(로컬 repository에 커밋)

  8. Terminal에서 "git remote add origin + '2번에서 복사한 url'" 입력
    (원격 repository 주소를 지정)
    ex) git remote add origin https://github.com/abc/abc.git

  9. "git pull origin main --allow-unrelated-histories" 입력
    (Github 내용을 로컬 repository에 반영)

  10. "git push -u origin master" 입력

profile
꾸준함이 최선이다.

0개의 댓글