https://jybaek.tistory.com/775
참조 페이지
Fork 한 repository 를 최신으로 동기화시켜야 할 때가 있다.
이를 위해서는 먼저 원본 repository 를 remote repository 로 추가해야 한다.
Fork 해온 repository 에서 remote repository 를 확인하면 아래와 같이 나올 것이다.
1
$ git remote -v
2
origin <https://github.com/YOUR_USERNAME/YOUR_FORK.git> (fetch)
3
origin <https://github.com/YOUR_USERNAME/YOUR_FORK.git> (push)
여기에 동기화해오고 싶은 원본 repository 를 upstream 이라는 이름으로 추가한다.
1
$ git remote add upstream <https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git>