Error

error => fatal: refusing to merge unrelated histories => 해결!

stylish-code 2023. 5. 28. 23:59

fatal: refusing to merge unrelated histories
원인
로컬 저장소에는 리모트의 커밋 이력이 없으므로 에러 발생
아래의 경우 해결방법
remote 이름: origin
branch: main
git pull --allow-unrelated-histories origin main