当前位置:   article > 正文

git共同开发一个分支情况下常见问题解决_you have divergent branches and need to specify ho

you have divergent branches and need to specify how to reconcile them. hint:
image.png
  1. hint: You have divergent branches and need to specify how to reconcile them.
  2. hint: You can do so by running one of the following commands sometime before
  3. hint: your next pull:
  4. hint:
  5. hint: git config pull.rebase false # merge
  6. hint: git config pull.rebase true # rebase
  7. hint: git config pull.ff only # fast-forward only
  8. hint:
  9. hint: You can replace "git config" with "git config --global" to set a default
  10. hint: preference for all repositories. You can also pass --rebase, --no-rebase,
  11. hint: or --ff-only on the command line to override the configured default per
  12. hint: invocation.
  13. fatal: Need to specify how to reconcile divergent branches.
  14. hint: Updates were rejected because the tip of your current branch is behind
  15. hint: its remote counterpart. Integrate the remote changes (e.g.
  16. hint: 'git pull ...') before pushing again.
  17. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

输入git config pull.rebase false

重新拉取,提交就OK了。
有冲突的话,手动解决冲突再提交,

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

闽ICP备14008679号