将分支合并两次
我想将分支合并两次到另一个分支。 假设我在主分支中有一个文件。
src/file.txt的内容
abc
- 我已经创建了Master的“ FIX”分支,并将src/file.txt更新为
abc -fix
- 我已合并了'fix fix fix “分支通过合并PR(修复 - > Master)
- 现在我创建了Master的“功能”分支,并将SRC/File.txt更新为
abc-功能
- 功能 - > master)将“功能”分支合并为主人
我已经通过合并pr ( 分支。当我创建PR修复时 - > github大师显示没有什么可比较的。
我该如何实现?
I want to merge a branch twice to another branch.
Let's say, I had a file in master branch.
Contents of src/File.txt
ABC
- I've created 'fix' branch from master and updated the src/File.txt to
ABC - Fix
- I've merged 'fix' branch to master by merging the PR (fix -> master)
- Now I've created 'feature' branch from master and updated the src/File.txt to
ABC - Feature
- I've merged 'feature' branch to master by merging the PR (feature -> master)
Now, I want to have ABC - Fix
on my master branch. When I'm creating the PR fix -> master, Github is showing There isn’t anything to compare.
How can I achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这将在您的ABC中创建一个新的提交 - 修复分支(无需更改代码中的任何内容),您可以将PR提高到Master成功地。
This will create a new commit in your ABC - Fix branch(without changing anything in code) for you to raise PR towards master successfully.