develog

[git] fatal: refusing to merge unrelated histories 본문

카테고리 없음

[git] fatal: refusing to merge unrelated histories

냐옴 2024. 10. 17. 17:14

unrelated histories 오류로 머지가 안되는 경우

$ git merge master
fatal: refusing to merge unrelated histories

 

--allow-unrelated-histories 를 사용해서 머지한다

$ git merge master --allow-unrelated-histories
Auto-merging aa.txt
CONFLICT (add/add): Merge conflict in aa.txt
Automatic merge failed; fix conflicts and then commit the result.
Comments