git

[Git] 09. GitHub에 원격 저장소 만들기

hoazzinews 2025. 6. 7. 18:59
반응형

1. New repositry

 

2. 저장소 이름 설정

3. 원격 저장소 주소 확인

 

4. 로컬 저장소에 원격 저장소 주소 설정

$ git remote add origin https://github.com/mabsosa46/mypjt.git

$ git remote -v

 

5. 브랜치 이름 강제 변경(master > main)

$ git branch -M main

 

6. 원격 저장소에 올리기(push)

$ git push origin main

 

7. 원격 저장소에서 복제(clone)하기

$ git clone https://github.com/mabsosa46/mypjt.git .

 

8. 원격 저장소에서 내려받기(pull)

$ git pull origin main