GitHub Fork로 협업하기: 두 판 사이의 차이

기술노트
(CS 용어 정리 - GitHub Fork로 협업하기 추가)
 
(차이 없음)

2025년 4월 17일 (목) 14:27 기준 최신판

GitHub Fork로 협업하기

---

1. Fork한 자신의 원격 저장소 확인 (최초에는 존재하지 않음)

bash
   git remote -v

2. Fork한 자신의 로컬 저장소에 Fork한 원격 저장소 등록

bash
   git remote add upstream {원격저장소의 Git 주소}

3. 등록된 원격 저장소 확인

bash
   git remote -v

4. 원격 저장소의 최신 내용을 Fork한 자신의 저장소에 업데이트

bash
   git fetch upstream
   git checkout master
   git merge upstream/master
  - pull : fetch + merge


  • [ref]
 - https://help.github.com/articles/configuring-a-remote-for-a-fork/
 - https://help.github.com/articles/syncing-a-fork/