相关疑难解决方法(0)

为github pull请求只压缩一次"正确"提交

我在github上有一个回购,其他人(Bob,为了争论)发出了拉请求.他的代码不完美,所以我们经历了几轮标记.据我了解,他承诺并推动他对每组标记变更的拉动请求.

所以我的存储库现在看起来像这样:

master: ---o A (Chowlett
           |
           |
pull-req:  o---o---o---o
               B   C   D (all Bob)
Run Code Online (Sandbox Code Playgroud)

提交SHA和消息如下:

A:

123456 Good commit <chowlett>
Run Code Online (Sandbox Code Playgroud)

B:

777ccc Fix the widget bug <bob>
Run Code Online (Sandbox Code Playgroud)

C:

888ddd Review markups <bob>
Run Code Online (Sandbox Code Playgroud)

d:

999eee Further markups <bob>
Run Code Online (Sandbox Code Playgroud)

我现在很高兴接受这个拉动请求; 但我宁愿预标记版本不在我的回购中.我可以实现以下所有目标吗?如何?

  • 将B,C&D合并为我的仓库作为单个提交
  • 生成"合并拉取请求#99到..."提交
  • 让github自动关闭拉取请求

git github pull-request

46
推荐指数
3
解决办法
1万
查看次数

标签 统计

git ×1

github ×1

pull-request ×1