살면서 다양하게 마주친 에러들(기록용)
200120 Intellij git 연동 시 refs/heads/master:refs/heads/master [rejected] (fetch first) 오류
猫猫
2020. 1. 20. 17:58
반응형
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
그냥 간단하게 말하자면
원격저장소랑 로컬이랑 내용 다르니까 pull해서 업뎃한번 하라는거다.
그렇지만 문제는 난 저 원격저장소를 처음 만들었는데 뭘 pull하란 말이야...
계속 서치해보니 그냥 git 에러라는 말도 있고..
그래서 그냥 git bash에서
git push --set-upstream 저장소이름 master 로 올려버리고
다시 pull -> push 하니까 된다..^p^.....
반응형