GitHub에 프로젝트를 연결해서 올리려면 remote 명령어를 이용하면 된다.
- 원격 저장소 연결 : git remote add origin 주소
ex) git remote add origin https://github.com/carrotdy/test.git
- 원격 저장소 끊기 : git remote remove origin
- 원격 저장소 버전 확인 : git remote -v
이 다음부터 git push origin main -> git add . -> git commit -m "bottom tabs" -> git push origin main
차례대로 명령어 입력해서 원격 저장소에 올린다.
반응형
'Git' 카테고리의 다른 글
[Git] 터미널에서 Git 명령어 사용하기(+깃허브) (0) | 2022.06.17 |
---|---|
[Git] git init 입력하면 Using 'master' as the name for the initial branch 에러 메세지 (0) | 2022.06.16 |
[Git] clone명령어로 GitHub 로컬에 가져오기 (0) | 2022.06.13 |