오류 메세지:
rejected Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to the same ref. You may want to first integrate the remote changes before pushing again.
오류원인:
GitHub 혹은 GitLab 에서 저장소를 만들 때 README.md 를 생성하는 commit 을 시도했다. 하지만, local repository 에서는 README.md 를 생성하는 commit이 발생했다는 사실을 인식하지 못해 오류가 난 것이다.
해결방법 :
git push -f origin master
-f 를 이용해 강제 push를 진행한다.
참고사이트 :
https://stackoverflow.com/questions/20939648/issue-pushing-new-code-in-github
'GitLab' 카테고리의 다른 글
[GitLab ] gitlab HTTP Basic: Access denied 오류 (0) | 2019.05.12 |
---|---|
[GitLab] Visual Studio 와 GitLab 초간단 연동하기 (0) | 2019.05.12 |