본문 바로가기
괴발개발/git

fatal: refusing to merge unrelated histories 오류

by 맛길만걷자 2024. 5. 11.
728x90
반응형

 * branch            master     -> FETCH_HEAD
fatal: refusing to merge unrelated histories

git pull /push 오류

원인 : 커밋의 힘이없어서.. 커밋하다 꼬인경우임. 어차피 해결법만 알면되니 올림.

 

push 전에

refusing to merge unrelatedhistories

pull 시

it pull origin 브런치명 --allow-unrelated-histories

보통 아래처럼 브런치명에 main 이나 master을 넣어 해결

 

git pull --allow-unrelated-histories origin main

 

 

 

728x90
반응형