Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
更新已克隆到我的计算机上的mercurial回购_Mercurial - Fatal编程技术网

更新已克隆到我的计算机上的mercurial回购

更新已克隆到我的计算机上的mercurial回购,mercurial,Mercurial,我在两个不同的虚拟机上进行了mercurial回购,并在其中一台机器上进行了回购,并将更改推回到在线回购。有没有办法在我的第二个虚拟机上更新repo而不重新克隆repo 我尝试了hg更新,但没有成功 编辑:我想出来了 汞拉力 汞更新 您需要使用hg pull从在线回购中提取 假设这是您在第一个VM上执行的操作: $ hg ci $ hg push http://path_to_online_repo 这是您在第二个VM上需要的: $ hg pull http://path_to_online

我在两个不同的虚拟机上进行了mercurial回购,并在其中一台机器上进行了回购,并将更改推回到在线回购。有没有办法在我的第二个虚拟机上更新repo而不重新克隆repo

我尝试了hg更新,但没有成功

编辑:我想出来了

  • 汞拉力
  • 汞更新

您需要使用
hg pull
从在线回购中提取

假设这是您在第一个VM上执行的操作:

$ hg ci
$ hg push http://path_to_online_repo
这是您在第二个VM上需要的:

$ hg pull http://path_to_online_repo
$ hg update