1 개요[ | ]
- Syncing a fork
- Fork한 Git저장소를 원본저장소 싱크
- Fork한 Git저장소를 원본저장소에 동기화
- Fork한 Git저장소를 업스트림 따라잡기
- Fork한 Git저장소를 업스트림에 맞춰 현행화
- GitHub 원본저장소 동기화
Bash
Copy
# 1회성 사전작업
git remote add upstream http://github.com/org1/repo1.git # 업스트림 repo 지정
# 본 작업
git checkout main # main 브랜치로 전환
git pull upstream main # upstream의 main 변경내역 가져오기(pull)
git push origin main # 내 repo의 main에 반영(push)
2 같이 보기[ | ]
- git remote
- git remote -v
- git fetch
- git checkout
- git merge
- git push
- Git 브랜치 업스트림 반영
- Git 저장소 최신본으로 되돌리기
3 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.