需要从拉力请求中删除多个提交
我不小心创建了Git Branch B,然后在分支A上。然后,我创建了一个拉动请求,我看到了分支A的所有提议都在B分支上转移。我需要从B Branch \ Pult请求中删除所有A提交,而无需关闭拉请请求。
I accidentally created git branch B, while being on branch A. Then i created a pull request, where i saw, that all the commits from branch A were transfered on B branch. I need to delete all A commits from B branch \ pull request without closing a pull request.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需将
b
重新置于正确的起点(即,而不是a
),然后再次将其推动(如有必要,请使用- force
)。第一步是
git rebase -onto xa b
(其中x
是任何起点b
应该 ),与第二步只是重复您已经使用过的任何
git push
。Just rebase
B
onto the correct starting point (ie, notA
), and then push it again (with--force
if necessary).The first step is a
git rebase --onto X A B
(whereX
is whatever starting pointB
should have), exactly as covered in the manual.The second step is just repeating whatever
git push
you already used.