기존 저장소 (https://github.com/someguy/foo
)의 GitHub 포크 (https://github.com/someguy/foo
)가 있다고 가정 해 봅니다. 저장소를 GitHub 원래 저장소 (분기점)에 로컬로 추가하십시오.
origin
), 내 GitHub의 포크를 가리키는 :
# Output from `git remote -v`
origin [email protected]:sitaktif/foo (fetch)
origin [email protected]:sitaktif/foo (push)
내 리모컨에 부모 저장소를 추가하고 싶습니다 (즉, 내가) GitHub의에 처음부터 포크 저장소, 그것은 결국 다음과 같습니다 있도록 : 내가 아는
# Output from `git remote -v`
origin [email protected]:sitaktif/foo (fetch)
origin [email protected]:sitaktif/foo (push)
upstream https://github.com/someguy/foo (fetch)
upstream https://github.com/someguy/foo (push)
를 내가 원격 수동으로 추가하지만 내가 원하는 것은하는 것입니다 수 있습니다 이 작업을 자동으로 수행하면 (각 로컬 저장소에 대한 부모/원래 저장소의 주소를 수동으로 찾을 필요가 없습니다).