Skip to main content

이 버전의 GitHub Enterprise Server는 다음 날짜에 중단됩니다. 2026-03-17. 중요한 보안 문제에 대해서도 패치 릴리스가 이루어지지 않습니다. 더 뛰어난 성능, 향상된 보안, 새로운 기능을 위해 최신 버전의 GitHub Enterprise Server로 업그레이드합니다. 업그레이드에 대한 도움말은 GitHub Enterprise 지원에 문의하세요.

포크에 대한 원격 리포지토리 구성하기

원본 리포지토리와 포크에서 변경한 내용을 동기화하려면 Git의 업스트림 리포지토리를 가리키는 원격을 구성해야 합니다. 이렇게 하면 원본 리포지토리의 변경 내용을 포크와 동기화할 수도 있습니다.

Platform navigation

  1. Open TerminalTerminalGit Bash.

  2. List the current configured remote repository for your fork.

    $ git remote -v
    > origin  https://HOSTNAME/YOUR-USERNAME/YOUR-FORK.git (fetch)
    > origin  https://HOSTNAME/YOUR-USERNAME/YOUR-FORK.git (push)
    
  3. Specify a new remote upstream repository that will be synced with the fork.

    git remote add upstream https://HOSTNAME/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git
    
  4. Verify the new upstream repository you've specified for your fork.

    $ git remote -v
    > origin    https://HOSTNAME/YOUR-USERNAME/YOUR-FORK.git (fetch)
    > origin    https://HOSTNAME/YOUR-USERNAME/YOUR-FORK.git (push)
    > upstream  https://HOSTNAME/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (fetch)
    > upstream  https://HOSTNAME/ORIGINAL-OWNER/ORIGINAL-REPOSITORY.git (push)