[Github] 레포지토리로 push 에러 해결

2022. 12. 1. 12:21Error 모음

Updates were rejected because the remote contains work that you do 블라블라블라

업데이트 버전을 푸시하는 과정에서 에러가 났다 무엇인고 하니

https://stackoverflow.com/questions/18328800/github-updates-were-rejected-because-the-remote-contains-work-that-you-do-not-h

 

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가 된다는 내용

 

해결 완료 굿