Cannot resolve GitHub conflict in PR

三世轮回 提交于 2019-12-06 07:51:39

The usual workflow is:

  • make sure yo have the latest master from upstream, upstream being the name of the remote referencing the original repo in a triangular workflow)

git fetch upstream

Then you create your own branch (in your own fork, where you have fetch the PR branch from another fork)

git checkout -b branch2 otherfork/PRbranch

And you rebase that branch on top of upstream/master

This is key: no merge: rebase only, that way, you will resolve conflicts, and the resulting history of branch2 will be additional commits on top of upstream/master, which will make the PR a simple fast-forward merge when applied (merged) to master in the original repo (the upstream one).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!