두 번째 오류 git push
에서 오류가 발생했습니다. 동일한 풀 요청에 몇 가지 새로운 변경 사항을 추가하고 싶습니다.이 문제를 해결하는 방법은 무엇입니까? 감사.이상한 git 푸시 오류
망할 놈의 작업
git checkout -b newFooBranch
git add <name of file changed>
git commit -m 'add some initial changes'
git push origin newFooBranch
// make some changes
git add <name of same file changed>
git commit -m 'add some new changes on the same file'
// met with error when executing below command
git push origin newFooBranch
오류 메시지,
To [email protected]:foo/goo.git
! [rejected] newFooBranch -> newFooBranch (non-fast-forward)
error: failed to push some refs to '[email protected]:foo/goo.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.
편집 한,
git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> newFooBranch
관련하여, 린
다른 사람이 해당 지점을 커밋하고 푸시했다면 로컬 HEAD 포인터를 옮겼습니다. 아마도'git checkout' 명령을 사용했을 것입니다. github을보고 커밋이 로컬 커밋과 다른지 확인하십시오. –
@AndyRay, 감사합니다. "github을보고 어떤 커밋이 당신의 로컬 커밋과 다른지 확인하는 것"은 무엇을 의미합니까? github.com에서 볼 섹션이 있습니까? –