当前位置:   article > 正文

git提交后,有新的代码提交导致的冲突This change has merge conflicts. Download the patch and run “git rebase master“.

this change has merge conflicts. download the patch and run "git rebase". up

This change has merge conflicts. Download the patch and run "git rebase master".
Upload a new patchset after resolving all merge conflicts.

This change has merge conflicts. Download the patch and run "git rebase master".
Upload a new patchset after resolving all merge conflicts.

这个问题是因为提交代码后没有及时入库,有新的代码提交导致冲突,解决方法:

  1. 查看当前分支修改 git status
  2. 保存当前修改到缓存区 git  stash save
  3. 创建新的分支并进入 git checkout -b "location_name"  remote/m/远程分支
  4. 拉去代码 git pull
  5. cherrypick (git fetch)
  6. git status .
  7. git diff 查看冲突 解决冲突
  8. 解决冲突后 git add
  9. git cherry-pick --continue
  10. git push origin HERD:refs/for/远程分支
  11. 完成后 切换到编码的本地分支 git checkout 本地编码分支
  12. git stash apply
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/118840
推荐阅读
相关标签
  

闽ICP备14008679号