[git] git push가 겪는 문제

1573 단어 git

1,gitpush 시 알림과 원격 지점이 충돌합니다

error: failed to push some refs to 'XXX'
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.원격 수정은 로컬과 충돌이 없고 순조롭게 통합됩니다. -gitpull, 동기화 원격 지점-gitpush, 다시 제출합니다.원격 수정은 로컬과 충돌합니다. - 충돌이 있으면: error: local changes to the following files would be overwritten by merge: Please commit your changes or stash them before you merge. -gitstash, 로컬 수정 임시 저장-gitpull, 동기화 원격 지점-gitstashpop, 로컬 수정 복구, 이 단계에서 어떤 파일이 충돌하는지 알려주고 수동으로 처리합니다

좋은 웹페이지 즐겨찾기