2
我有两个git仓库,分别叫volatile
和template
。
template
是一个只读回购,被视为“原始”。 (至少两个)上游遥控器上都存在volatile
和template
。
volatile
作为template
的相同副本开始。 这是通过力推到volatile
从内template
做像这样:挥发性
cd template;
git push -f remote-url1:volatile --prune
git push -f remote-url2:volatile --prune
经过几次操作,挥发的状态发生变化。 添加分支,标签和提交。
我该如何着手使volatile
与template
(在遥控器上)一致?
我现在可以重置通过执行分支下面:
# On my local machine
cd template;
git push -f remote-url1:volatile 'refs/remotes/origins/*:refs/heads/*' --prune
git push -f remote-url2:volatile 'refs/remotes/origins/*:refs/heads/*' --prune
我使用
cd template;
git push -f remote-url1:volatile --tags --prune
和
cd template;
git push -f remote-url1:volatile --prune 'refs/tags/*:refs/tags/*'
,以消除添加的标签试图遥远的,但这似乎给混合resul TS(我不能在时间删除标签,远程说的一切是最新的)
你能简单地'混帐克隆远程URL1:模板volatile'? –
@JohnZwinck我在本地做到这一点,但我无法为遥控器做到这一点。 – ffledgling
你可以rsync到遥控器吗? –