<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.
이런 오류가 났다.
이유를 찾아보니
git push **-u** origin master
또는
git push -f origin master