fatal: refusing to merge unrelated histories 해결방법 | git

Duboo·2022년 5월 13일
0
post-thumbnail

fatal: refusing to merge unrelated histories

깃헙에 로컬에 있는 프로젝트를 add > commit > push하는 과정에서 위와 같은 에러가 나올 경우 해결방법입니다.

git pull

깃헙 저장소에 있는 프로젝트를 git pull 명령으로 병합해줍니다.

이때 위와 같은 에러가 나온다면 아래의 명령어로 해결할 수 있습니다.
git pull origin 브런치명 --allow-unrelated-histories

profile
둡둡

0개의 댓글