코딩/기타
git fatal refusing to merge unrelated histories
모두와 함께
2020. 7. 8. 18:55
git 에서 pull(또는 push)을 하는 도중 발견된 fatal refusing to merge unrelated histories에러, 뜻풀이를 하자면 관련없는 기록들을 병합하는 것을 거절한다는 뜻을 가진 에러를 발견했는데요,
해결방법은 명령어 뒤에 '--allow-unrelated-histories'를 입력하면 가능합니다.
이는 관련없는 기록에 대해 push, pull을 허락한다는 의미입니다.
git push origin [브랜치명] --allow-unrelated-histories
git pull origin [브랜치명] --allow-unrelated-histories