728x90
⚠️ 2021.07.19에 작성된 글입니다 ⚠️
문제상황
git pull할 때 다음과 같은 문제가 발생했다.
fatal: refusing to merge unrelated histories
원인
서로 관련 기록이 없는 두 프로젝트를 병합하려 할 때 발생한다. git에서는 기본적으로 이런 상활을 거부하는 것이다.
해결
pull 할 때, 다음과 같은 옵션을 추가해 진행한다.
git pull origin <name> --allow-unrelated-histories
두 프로젝트의 히스토리를 저장하는 상황에 사용한다. 상관없는 두 프로젝트를 병합하는 것을 허용하겠다는 옵션이다.
728x90
'Error' 카테고리의 다른 글
[Error] smtp error: could not authenticate (0) | 2022.10.25 |
---|---|
[Error][Git] pack-objects died of signal 9 (0) | 2022.10.24 |
[Error][PHP] Uncaught Error: Call to undefined function mysqli_connect() (0) | 2022.10.24 |
[Error] AH00558: httpd: Could not reliably determine... (0) | 2022.10.24 |
[Error][VM] 우분투 네트워크 안됨 (0) | 2022.10.24 |