컴퓨터과학/GIT

fatal: refusing to merge unrelated histories

민유민민 2023. 4. 7. 01:13

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

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

해결법

git pull --allow-unrelated-histories REMOTE BRANCH