본문 바로가기
카테고리 없음

프로젝트 GitHub에 업로드하는 방법

by ginny. 2025. 3. 26.

1️⃣ GitHub에서 새 레포지토리 생성

  • GitHub 접속 → New Repository 클릭

 

2️⃣ Git 초기화 및 프로젝트 업로드 (로컬에서)

  1. 로컬프로젝트에서 git 초기화 (init)
    git init
  2. 프로젝트 루트에 .gitignore 설정
  3. GitHub 원격 저장소 연결 (remote add)
    git remote add origin https://github.com/사용자이름/my-expo-app.git
     
  4. 변경사항 커밋 (add,commit)
    git add .
    git commit -m "Initial commit"
  5. GitHub 레포지토리에 업로드 (Push)
    git push -u origin master

댓글