git push 충돌 에러 해결방법 failed to push some refs to 'git@github.com:id/repository'

에러코드

error: failed to push some refs to 'git@github.com:id/repository'

 

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.

 

 

해결방법

1)원격저장소 → 로컬저장소로 pull

2)충돌 소스 정리

3)다시 push

 

잘안되시거나 다른 문제로 어려움을 겪고 계신분은 댓글로 공유해주시면 제가 도와드리겠습니다!

 

같이 해결해보아요 ㅎㅎ

댓글

Designed by JB FACTORY