你可以帮我解决这个GitHub错误吗?我没有得到我做错了。
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.
答案 0 :(得分:0)
正在进行的是原始服务器有一些你尚未撤下的提交。
我建议使用rebase解决此问题。
通常你可以这样做:
git fetch origin master
git rebase origin/master
git push origin master
这会将您的提交置于分支的顶部,之后您之前没有的上游工作。