본문 바로가기
Git

[Git] error: failed to push some refs to ~

by watergrace2u 2021. 2. 4.
반응형
SMALL

git push를 했을 때 다음과 같은 에러가 나는 경우

로컬에서 push하려는 commit과 github에 있는 파일이 일치하지 않아서 생기는 오류이다.

 

해결법: 강제 푸시(파일 손상 위험 주의)

$ git push -f origin master

 

cf. nirsa.tistory.com/167

반응형
LIST

'Git' 카테고리의 다른 글

[Git] 로컬저장소와 원격(remote)저장소 연동  (0) 2020.09.20

댓글