본문 바로가기

컴퓨터과학/GIT

fatal: refusing to merge unrelated histories

GIT push / pull 할 때 fatal: refusing to merge unrelated histories

  • 로컬과 원격에서 한 쪽은 커밋 이력이 없는 파일을 push나 pull 할 시 생기는 문제

해결법

git pull --allow-unrelated-histories REMOTE BRANCH