push问题1

Posted kekemuyu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了push问题1相关的知识,希望对你有一定的参考价值。

问题:

$ git push
To gitee.com:kekemuyu/xtpole.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to ‘[email protected]:kekemuyu/xtpole.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.

解决:

git pull –rebase origin master

git push









以上是关于push问题1的主要内容,如果未能解决你的问题,请参考以下文章

关于push和concat的性能问题

关于push和concat的性能问题

数组 forEach 将“push”作为参数传递

git可以add,pull, 不可以push的问题解决

vue $router.push 传参的问题

git冲突解决问题---多人修改同一文件