GIT Error fatal: refusing to merge unrelated histories

아기코딩단2·2023년 12월 12일
  • branch main -> FETCH_HEAD
    fatal: refusing to merge unrelated histories

개요 : git init 을 하고 로컬과 github repository 와 연결 후 pull 할 때 발생한 에러

이유 : 서로 한번도 연결된 적 없어서

해결 : git pull origin main --allow-unrelated-histories 명령어 사용해서 서로 연결해주면 됩니다.

관련문서 : https://jobc.tistory.com/177

profile
레거시 학살자

0개의 댓글