{"meta":{"title":"포크에 대한 원격 리포지토리 구성하기","intro":"포크와 원래 리포지토리 간의 변경 내용을 동기화하도록 Git의 업스트림 리포지토리를 가리키는 원격을 설정합니다.","product":"끌어오기 요청","breadcrumbs":[{"href":"/ko/pull-requests","title":"끌어오기 요청"},{"href":"/ko/pull-requests/how-tos","title":"사용법"},{"href":"/ko/pull-requests/how-tos/work-with-forks","title":"포크 사용하기"},{"href":"/ko/pull-requests/how-tos/work-with-forks/configuring-a-remote-repository-for-a-fork","title":"원격 리포지토리 구성"}],"documentType":"article"},"body":"# 포크에 대한 원격 리포지토리 구성하기\n\n포크와 원래 리포지토리 간의 변경 내용을 동기화하도록 Git의 업스트림 리포지토리를 가리키는 원격을 설정합니다.\n\n1. 터미널 또는 Git Bash를 엽니다.\n1. 포크에 현재 구성된 원격 저장소를 나열하세요.\n\n   ```shell\n   $ git remote -v\n   > origin  https://github.com/YOUR-USERNAME/YOUR-FORK.git (fetch)\n   > origin  https://github.com/YOUR-USERNAME/YOUR-FORK.git (push)\n   ```\n\n1. 원래 리포지토리를 가리키는 _업스트림_ 이라는 새 원격을 추가합니다.\n\n   ```shell\n   git remote add upstream https://github.com/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git\n   ```\n\n1. 포크용으로 지정한 새 업스트림 리포지토리를 확인하세요.\n\n   ```shell\n   $ git remote -v\n   > origin    https://github.com/YOUR-USERNAME/YOUR-FORK.git (fetch)\n   > origin    https://github.com/YOUR-USERNAME/YOUR-FORK.git (push)\n   > upstream  https://github.com/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (fetch)\n   > upstream  https://github.com/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (push)\n   ```"}