🙌🏻Fork 한 repositort를 최신으로 동기화시켜야 하는 경우
나는 두번째의 경우에 해당한다.
1)원본 repo를 remote repo로 추가
Fork해온 repo에서 remote repo확인해보기 git remote -v
2) 동기화해오고 싶은 원본repo를 upstream이라는 이름으로 추가
git remote add upstream 동기화해오고 싶은 원본repod의 url
3) upstream repo가 제대로 추가되었는지 확인
4) upstream repo로부터 최신 업데이트 가져오기
git fetch upstream
5)upstream repository 의 master branch (혹은 원하는 branch) 로부터 나의 local master branch 로 merge
git checkout master
git merge upstream/master
여기까지는 내 local repository에서 일어난 것이므로 push해야 내 깃허브의 repo에도 적용!
git push origin master