2014-11-27 5 views
1

내가 다시는 huuummmmpf가 아닌 Git 문제가있다.
내가 특정 분기로 푸시 할 수 없다.
나는 다시 푸시 -베이스를 다시 밀고 다시 밀어 넣었다.어떻게 git에서 문제 원인을 찾을 수 있습니까?

새로운 소식이 없습니다.
(내 작품을 보내는 방법을 알아 냈습니다)

검색 할만한 분야가 있습니까?

나는 앞으로 이러한 문제를 직접 해결할 수 있기를 정말로 원합니다.
실제로 학생으로서의 모든 대답을 이해할 수있는 것은 아닙니다. 그러나 나는이 경우에 조금 잃어서 ressourceless이다 (그리고 이것은 나를 아주 불쾌하게 만든다).
어디서이 망할 레포에서 무슨 일이 일어나는지 알아낼 수있는 단서를 찾을 수 있습니까?

추신 : 귀하의 모든 노력으로 많은 프로젝트를 저장했습니다. 많은 분들께 감사드립니다. git branch 현재 브랜치로서 당신에게 분기 25_push를 표시해야합니다 의미

Current branch 25_push is up to date. 

:

$ git pull origin stef 

From github.com:PierreND/approfusion 
* branch   stef  -> FETCH_HEAD 
Already up-to-date. 

$ git pull --rebase origin stef 

From github.com:PierreND/approfusion 
* branch   stef  -> FETCH_HEAD 
Current branch 25_push is up to date. 

$ git push origin stef 

To [email protected]:PierreND/approfusion.git 
! [rejected]  stef -> stef (non-fast-forward) 
error: failed to push some refs to '[email protected]:PierreND/approfusion.git' 
hint: Updates were rejected because a pushed branch tip is behind its remote 
hint: counterpart. Check out this branch and merge the remote changes 
hint: (e.g. 'git pull') before pushing again. 
hint: See the 'Note about fast-forwards' in 'git push --help' for details. 
+0

현재 지점이 "25_push"이지만 stef를 푸시하려고합니다. 먼저 stef를 체크 아웃하고 거기에 끌어 오기를 한 다음 밀어 넣으십시오. – VonC

+0

홀리 molly! 그게 효과가 있었어!하지만 브랜치가 스테이크에서 만든 25_push를 이해하지 못했고 콘솔 메시지에서 아무 것도 알려주지 못 했어. 이걸 어떻게 혼자서 알아 내야하지? (정말 빨리, 너) – plombix

답변

0

망할 놈의 풀은 당신에게 단서를 제공 --rebase.

스위치 지점 stef에 :

git checkout stef 
git pull --rebase 
git push 
내가 설정하는 것이 좋습니다 것입니다

당신의 push policy to 'simple', (모든 지역 지점에 반대)에만 현재 지점

git config --global push.default simple 
에 푸시을 제한하기 위해
관련 문제