티스토리 뷰

Git

Fork Repository 최신 업데이트

Young_J 2021. 4. 5. 23:58

1. 깃 리모트 상태 확인

$ git remote -v

- upstream 에 원본 저장소가 연결되지 않았다면

$ git remote add upstream 주소

 

2. fetch를 통해 원본 소스코드 내용을 받음

$ git fetch upstream

 

3. 내려받은 코드를 실제 내 repository에 merge

$ git merge upstream/main

 

4. 내 원격 저장소로 푸시

$ git push

 

출처

https://jybaek.tistory.com/775

 

[GitHub] fork repository 최신 버전으로 유지하기

# TL;DR git remote add upstream ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git git fetch upstream git merge upstream/master # 들어가며 GitHub 에서 좋은 프로젝트를 발견했고 유용하게 사용을 하다보면 Contribut..

jybaek.tistory.com

 

'Git' 카테고리의 다른 글

Gitlab -> Github 100mb 이상 migration  (0) 2021.03.31
Git branch 옵션 정리  (0) 2021.03.05
Git remote repository 변경  (0) 2021.03.03
Git Repository migration  (0) 2021.02.28
push 된 file 에 .gitignore 적용시키는 방법  (0) 2021.01.22
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG more
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함