当前位置:   article > 正文

! [rejected] master -> master (non-fast-forward)error: failed to push some refs to ‘https:/_! [rejected] master -> master (non-fast-forward) e

! [rejected] master -> master (non-fast-forward) error: failed to push some

 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://e.coding.net/g-gosv1888/Admin_Study/zhitongxinnengyuan.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

合并的库和本地库不一致,要先执行git pull操作

解决办法:
git pull --rebase origin master

git push --set-upstream origin master

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/533005
推荐阅读
相关标签
  

闽ICP备14008679号