개발/Flutter

Flutter project를 git hub에 올리기

Byunpa24 2021. 5. 16. 20:06
반응형

1. 먼저 터미널에 가서  git --version 을 입력하고 version을 확인한 다음 아래의 command를 입력한다.

git config --global user.email

그럼 본인의 계정과 연결된 username을 확인한다.

 

2. 그런 다음 github에 가서 new repository를 만들고 주소창의 주소를 복사한다.

 

3. git remote -v command를 사용하여서 origin을 알아낸 다음

 

4. git remote set-url origin "git hub repository 주소" command를 입력하여 remote를 바꾸어준다.

 

5. git branch -M main

 

6. git push -u origin main

 

반응형