[Github] 레포지토리로 push 에러 해결
2022. 12. 1. 12:21ㆍError 모음
Updates were rejected because the remote contains work that you do 블라블라블라

업데이트 버전을 푸시하는 과정에서 에러가 났다 무엇인고 하니
Github "Updates were rejected because the remote contains work that you do not have locally."
I created a new repo, cloned it, added files to the directory, added them with add -A, committed changes, and when I try to push using git push <repo name> master I get: hint: Updates were
stackoverflow.com
발생의 원인은 레포지토리를 README 파일이나 LICENSE 파일과 같이 생성하면 발생한다고 적혀있다.
해결책은 pull 을 하면 알아서 fetch와 merge가 된다는 내용

해결 완료 굿
'Error 모음' 카테고리의 다른 글
| [Docker] 윈도우 Docker 실행 시 "Docker Desktop requires a newer WSL kernel version" (0) | 2023.02.28 |
|---|---|
| [Github] fatal: not a git repository (or any of the parent directories): .git (0) | 2022.12.01 |
| [Error] aws에서 db 연결문제 (0) | 2022.11.30 |