Stash启用自动fork同步(如果选择):https
:
//confluence.atlassian.com/display/STASH/Keeping+forks+synchronized
它将更新fork中未修改的任何分支.
我一直无法在gitHub中找到类似的自动功能; 所有谷歌搜索都通过本地缓存以手动方式同步分叉.
我有2个遥控器-原产地指向我的叉子和上游到公司回购该点。
$git remote -v
origin https://github.com/me/app.git (fetch)
origin https://github.com/me/app.git (push)
upstream https://github.com/company/app.git (fetch)
upstream https://github.com/company/app.git (push)
Run Code Online (Sandbox Code Playgroud)
我分叉前一个月。我一直在推动原点,然后向上游提出拉取请求。这很好。
现在有人在上游创建了一个名为“3D_Theory”的分支,我想首先将该新分支反映到我的原点,然后从该分支开始工作。但出于某种原因,该分支并没有反映在我的起源中。
我尝试了以下方法:
git remote show origin
>> does not list 3D_Theory
git remote show upstream
>> lists 3D_Theory
Run Code Online (Sandbox Code Playgroud)
我试过:
git fetch upstream
git checkout master
git merge upstream/3D_Theory
Run Code Online (Sandbox Code Playgroud)
但是我仍然没有在我的叉子上创建那个分支。如何在上游获得一个新分支以反映我的分叉?
谢谢
以下类似问题都没有帮助我: