I have a repo (origin) on a USB key that I cloned on my hard drive (local).
(我在硬盘驱动器(本地)上克隆的USB密钥上有一个回购(来源)。)
I moved "origin" to a NAS and successfully tested cloning it from here. (我将“起源”移至NAS并成功测试了从此处克隆它的过程。)
I would like to know if I can change the URI of "origin" in the settings of "local" so it will now pull from the NAS, and not from the USB key.
(我想知道是否可以在“本地”设置中更改“源”的URI,以便它现在可以从NAS而不是从USB密钥中提取。)
For now, I can see two solutions:
(现在,我可以看到两种解决方案:)
push everything to the usb-orign, and copy it to the NAS again (implies a lot of work due to new commits to nas-origin);
(将所有内容推送到usb-orign,然后再次将其复制到NAS(由于对nas-origin的新提交,这意味着很多工作);)
add a new remote to "local" and delete the old one (I fear I'll break my history).
(在“本地”中添加新的遥控器,然后删除旧的遥控器(我担心会破坏我的历史记录)。)
ask by e-satis translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…