2016-07-01 8 views
-1

Hallo konnte mir jemand mit diesem GitHub Fehler helfen? Ich verstehe nicht, was ich falsch gemacht habe.GitHub Fehler beim Drücken meines Codes

To https://github..com/kumar/web.git 
! [rejected]  develop -> develop (fetch first) 
error: failed to push some refs to 'https://github..com/kumar/web.git' 
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. 

Antwort

0

Was ist los ist der Ursprungsserver hat einige Commits, die Sie noch nicht heruntergezogen haben.

Ich empfehle eine Rebase, um dies zu beheben.

Im Allgemeinen können Sie tun:

git fetch origin master 
git rebase origin/master 
git push origin master 

Dies bringt Ihre Commits an die Spitze der Branche, nach der Upstream-Arbeit, die Sie vorher nicht hatten.

Verwandte Themen