해결 방법:error:failed to push some refs to'https://github.com/xxxx.git‘
1568 단어 Git
fengxun@DESKTOP-GL9HQRU MINGW64 /d/GitWorkSpace (master)
$ git push origin master
To https://gitee.com/woshifanlan/git_study.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://gitee.com/woshifanlan/git_study.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
원인: 오류가 발생한 주요 원인은gitee의 README입니다.md 파일이 로컬 코드 디렉터리에 없으면 다음 명령을 통해 코드 통합을 할 수 있습니다
git pull --rebase origin master
입력
git push origin master # gitee
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
브랜치 병합(Visual studio 2017 사용)의 계속입니다. 기능 추가를 위한 브랜치를 작성하고, 기능 추가한 후, 그 내용을 develop 브랜치에 병합해 봅니다. 1. 새롭게 「add1」라고 하는 브랜치를 작성 2. 브랜치 "add1"을 선택한 상태에서 M...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.