<aside> ❓ failed to push some refs to~,Updates were rejected because the remote contains work that you do not have locally

</aside>

git add/commit 해서 push 하려고 하니

To <https://github.com/mgbot/westargram.git>
 ! [rejected]        master -> master (fetch first)

error: failed to push some refs to '<https://github.com/mgbot/westargram.git>'
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 merge the remote changes (e.g.,
hint: 'git pull') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

이런 오류가 났다.

이유를 찾아보니

  1. Github에서 레포지토리를 생성
  2. READ.md와 new commit 역시 새로 생성
  3. 내 로컬은 그걸 모르더라~

해결방법

git push **-u** origin master

또는

git push -f origin master