简体   繁体   English

如何合并从另一个分支分叉的分支? (为了从原始分支获取最新提交)

[英]How to merge a branch which has been forked from another into it ? (in order to get the latest commit from original branch)

I own a rock960 model c by 96boards and their kernel github repository (96rocks) is forked from rockchip-linux kernel one...我拥有 96boards 的 Rock960 模型 c,他们的内核 github 存储库 (96rocks) 是从 Rockchip-linux 内核分叉出来的...

How do i do to merge 96rocks 'release-4.4-rock960' branch into rockchip-linux 'stable-4.4-rk3399-linux' ?我如何将 96rocks 'release-4.4-rock960' 分支合并到 rockchip-linux 'stable-4.4-rk3399-linux' 中?

When i compare these two branches through github UI , it's telling me that they are not automatically mergeables...当我通过 github UI 比较这两个分支时,它告诉我它们不是自动可合并的...

So the goal is, they are behind the repo they are forked from, and you'd like your own copy to be up to date?所以目标是,他们在他们分叉的仓库的后面,你希望你自己的副本是最新的吗? Clone the https://github.com/96rocks/kernel repository to your own machine;https://github.com/96rocks/kernel仓库克隆到自己的机器上; it is now your origin remote.它现在是您的origin遥控器。 Now, on your own machine, add the https://github.com/rockchip-linux/kernel as another remote;现在,在您自己的机器上,将https://github.com/rockchip-linux/kernel添加为另一个远程; name it upstream (that is conventional).将其命名为upstream (即传统)。 Now you can fetch from upstream and merge into your local branch that comes from origin .现在您可以从upstream获取并合并到来自origin本地分支。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM