{"meta":{"title":"비빠른 선행 오류 처리","intro":"Git에서 커밋을 잃지 않고 원격 리포지토리를 변경할 수 없는 경우가 있습니다. 이 경우 푸시가 거부됩니다.","product":"시작하기","breadcrumbs":[{"href":"/ko/enterprise-cloud@latest/get-started","title":"시작하기"},{"href":"/ko/enterprise-cloud@latest/get-started/using-git","title":"Git 사용"},{"href":"/ko/enterprise-cloud@latest/get-started/using-git/dealing-with-non-fast-forward-errors","title":"빠른 전달이 아닌 오류"}],"documentType":"article"},"body":"# 비빠른 선행 오류 처리\n\nGit에서 커밋을 잃지 않고 원격 리포지토리를 변경할 수 없는 경우가 있습니다. 이 경우 푸시가 거부됩니다.\n\n다른 사용자가 사용자와 동일한 분기에 푸시한 경우 Git에서 변경 내용을 푸시할 수 없습니다.\n\n```shell\n$ git push origin main\n> To https://github.com/USERNAME/REPOSITORY.git\n>  ! [rejected]        main -> main (non-fast-forward)\n> error: failed to push some refs to 'https://github.com/USERNAME/REPOSITORY.git'\n> To prevent you from losing history, non-fast-forward updates were rejected\n> Merge the remote changes (e.g. 'git pull') before pushing again. See the\n> 'Note about fast-forwards' section of 'git push --help' for details.\n```\n\n로컬에서 수행한 변경 사항에 원격 분기의 변경 내용을 [페치하고 병합하여](/ko/enterprise-cloud@latest/get-started/using-git/getting-changes-from-a-remote-repository) 이 문제를 해결할 수 있습니다.\n\n```shell\n$ git fetch origin\n# Fetches updates made to an online repository\n$ git merge origin YOUR_BRANCH_NAME\n# Merges updates made online with your local work\n```\n\n또는 두 명령을 한 번에 모두 수행하는 데만 `git pull`을 사용할 수 있습니다.\n\n```shell\n$ git pull origin YOUR_BRANCH_NAME\n# Grabs online updates and merges them with your local work\n```"}