🤝GitHub
Git push & git pull이 안될 때 - 오류 : (fatal: refusing to merge unrelated histories)
코너(Corner)
2020. 10. 31. 11:55
반응형
깃허브
featl : refusing to merge unrelated histories 오류가 뜰 때
push 전에 먼저 pull을 해서 프로젝트를 병합해 주어야 한다.
refusing to merge unrelated histories
pull 명령 실행시 이런 문구와 함께 진행되지 않는다면, 다음의 명령으로 실행한다.
git pull origin 브런치명 --allow-unrelated-histories
--allow-unrelated-histories 이 명령 옵션은 이미 존재하는 두 프로젝트의 기록(history)을 저장하는 드문 상황에 사용된다고 한다. 즉, git에서는 서로 관련 기록이 없는 이질적인 두 프로젝트를 병합할 때 기본적으로 거부하는데, 이것을 허용해 주는 것이다
반응형