반응형
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 integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
github repository를 생성할 때 readme.md 생성으로 인한 오류라고 한다.
pull
해도 또 다른 오류가 발생한다.
+
를 이용하여 에러 상관없이 강제로 push 하게 도와준다.
git push -u [origin] +master
Reference
https://doozi316.github.io/errorlog/2019/09/30/error1/
반응형
'👩🏻💻STUDY > Git' 카테고리의 다른 글
[Git] 저장소에 따른 글로벌, 로컬 유저 변경하기 (1) | 2024.01.09 |
---|---|
[Git] 3 way merge 이해하기 (0) | 2022.04.19 |
[Git] origin/master vs origin master의 다른점 (0) | 2020.11.18 |
[Git] remote에 이미 push한 파일 지우기 (0) | 2020.11.04 |
[Git] 원격저장소에 올린 커밋 되돌리기 (0) | 2020.10.24 |