Loading...

Git / / 2022. 6. 9. 01:33

fork 저장소 동기화

반응형
$ git remote add origin-flit 원 저장소 주소
$ git remote -v
origin	https://github.com/brownbears1/flit.git (fetch)
origin	https://github.com/brownbears1/flit.git (push)
origin-flit	https://github.com/takluyver/flit.git (fetch)
origin-flit	https://github.com/takluyver/flit.git (push)

 

외부 저장소 최신 내용 가져오기

$ git fetch origin-flit

 

다음 merge를 할 브랜치로 변경한 다음, 위에서 가져온 최신 내용을 merge

$ git checkout master
$ git merge origin-flit/master

 

위 작업이 끝났으면 내 fork 저장소에도 반영

$ git push origin master
반응형