! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/jejecrunch/vuejs'
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.
* 원인 - fetch를 해주지 않고 push할 경우에 생긴다.
* 해결
1. git push origin +master로 해결 가능 (기존 데이터를 보장할 수 없음)
2. 우선 pull해서 데이터를 받고 다시 push 하자.
반응형
'에러' 카테고리의 다른 글
Whitelabel Error Page 1 (0) | 2019.05.15 |
---|---|
백준 런타임 에러 나는 이유 (0) | 2019.05.06 |
[Git] ![rejected] master -> master (non-fast-forward) (0) | 2019.05.06 |
[500] Parameter index out of range 에러 (0) | 2019.04.24 |
[500] java.lang.NumberFormatException: For input string: "null" 에러 (0) | 2019.04.24 |