깨진 git push에 대한 몇 가지 설명을 읽었으나 그 중 어떤 것도이 문제를 다룰 수는 없습니다.충돌이없는 git push 오류
끌어서 놓은 후에도 내 로컬 변경 사항을 원격 저장소로 푸시 할 수 없습니다.
$ git pull
Already up-to-date
$ git st
# On branch unstable
nothing to commit (working directory clean)
$ git push
To ssh://<url>
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'ssh://<url>'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
<url>
은 물론 내 저장소입니다
끌어 오기가 변경되지 않고 충돌이 발생하지 않으며 그 밖의 원인으로 인해 실패 할 수있는 원인이 있는지 잘 모르겠습니다.
나는이 올바르게 모든 설정있어 한 생각 : 과거
$ git remote -v
origin ssh://<url> (fetch)
origin ssh://<url> (push)
$ git branch -v
master 175a09d [behind 18] openReview must now be called from thread other than main.
* unstable c9e5cab Progress on attachments.
가, 난 그냥 내 로컬 저장소를 삭제했습니다. 그러나 이것은 점점 더 자주 발생하고 있습니다.
- 이 문제의 원인은 무엇입니까?
- 앞으로 어떻게 피할 수 있습니까?
- 어떻게 해결해야합니까?
이 답변은 정확합니다. 또한보십시오 : http://stackoverflow.com/a/8301464/156060 –
당신 말이 맞아요. 문제는 마스터 브랜치 (master branch)입니다. 또한,'git pull --all'은'git push '의 진짜 대응 물입니까? –