[WEB]오류들/inteilij-git오류

병합 오류: refusing to merge unrelated histories, 푸시가 거부됨

이운형 2022. 1. 10. 12:37
반응형

결론 : intellij 터미널에서  git pull --allow-unrelated-histories

를 사용해서 병합 혹은 처리를 하면 된다.

 

 

 

 

hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
! refs/heads/master:refs/heads/master [rejected] (non-fast-forward)
hint: 'git pull ...') before pushing again.
Done
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
12:27:47.833: [jpafoundation] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false fetch origin --recurse-submodules=no --progress --prune
12:27:49.478: [jpafoundation] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false merge origin/master --no-stat -v
fatal: refusing to merge unrelated histories
12:29:02.437: [jpafoundation] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/master:master

 

 

git push or pull 진행시 오류. 

=> 내 저장소의 소스코드와 github의 소스코드의 기록을 비교했을때 차이가 심할때 병합 오류가 날꺼같으니 한번 확인해 봐라.

 

 

반응형