본문 바로가기
깃허브

[Github] 깃허브 원격 저장소 만들기

by You_mool 2021. 7. 14.
반응형
git remote add origin 저장소주소
git add .
git status
git remote -v
git branch -M main

1. 원격 연결
2. 로컬 저장소에 변경된 파일 추가
3. 깃 상태 보기
4. 깃 원격 저장소 연결 확인
5. 브랜치 main으로 변경

 

git commit -m "first commit"
git push origin main

main branch를 원격 저장소에 push함

반응형