tip
로컬 저장소 깃헙에 만든 저장소로 푸시할 때 생기는 에러 해결
mtoc
2019. 10. 25. 01:33
git push origin master(브랜치명) --allow-unrelated-histories
먼저 해주면 된다.
git init
git remote add origin (저장소 주소)
이 상태에서 git pull 하면 오류남 계속 반복됨
인내심의 한계가 오기 전에
git push origin master(브랜치명) --allow-unrelated-histories
을 쳐보자. 깔끔히 해결 된다
그리고 나서 git add 하고
git commit 해주면 끝!
시험에 나오는 코드 좀 깔끔하게 보려고 했다가 수모를 당했다 흑흑
공부했다고 생각해야지