github push 失败 10
Usernamefor'https://github.com':dummymarePasswordfor'https://dummymare@github.com':To...
Username for 'https://github.com': dummymare
Password for 'https://dummymare@github.com':
To https://github.com/dummymare/Hello-World.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/dummymare/Hello-World.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. 展开
Password for 'https://dummymare@github.com':
To https://github.com/dummymare/Hello-World.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/dummymare/Hello-World.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. 展开
3个回答
展开全部
$ git pull origin master --allow-unrelated-histories
先合并再push,亲测可行
先合并再push,亲测可行
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
本地版本和主干上的有差异。。。让你先pull远端的版本,解决了冲突才能push
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询