How do you change the default base fork for a github pull request?

♀尐吖头ヾ 提交于 2019-11-28 23:07:57

You could try the following:

Create the branch again locally with the same name and the same contents the branch you want to merge to, it has to push to that branch to recreate the remote branch; and then reopen the PR to the branch. For example, you have a PR to branch1, which is deleted. You now want to merge to master and retain comments on your existing PR.

git checkout master
git pull
git checkout -b branch1
git push

Reopen your PR to branch1.

When merged to branch1, merge to master.

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