Post

[error: failed to push some refs to] 깃 푸시 에러





🚨문제 발생  

  • 사진 참고



1
git push -u origin main

입력했더니

Desktop View










🔑내가 해결한 방법

1
git pull origin main

을 해보았더니

fatal: Couldn’t find remote ref main. Unexpected end of commands stream


Desktop View




1
$git fetch origin

맨 밑줄에 unrelated histories가 있다 그러면 병합해주자!


Desktop View




1
git pull origin --allow-unrelated--histories

Desktop View


그 후 git push로 해결 완료!

준환과 함께 깃 명령어 알아보러 가기🤓







보시고 미흡한 부분이 있다면 피드백은 언제나 환영합니다!



아래 사진을 클릭하면 제 취미공간으로 이어집니다 ㅎㅎ 여기에서 메모 및 일상을 기록하는데 놀러오실 분들은 언제나 환영합니다!


링크로 이동하려면 사진을 클릭

어서오셔 ㅎ

This post is licensed under CC BY 4.0 by the author.
3D GIF