如何使用TortoiseHg同步两个存储库 [英] how to sync two Repository using TortoiseHg

查看:176
本文介绍了如何使用TortoiseHg同步两个存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生们

现在我有两个存储库,一个在我的PC中,另一个在我的USB闪存中,现在我如何在它们之间进行同步

说我已经编辑了一台PC并提交了,现在变成了vers. 6,但USB仍在运行. 5,我只想转移在ver.之后所做的更改. 5,删除USB一个并创建克隆的简单方法,但是存储库很大,克隆需要很多,所以我只想同步更改

谢谢大家
bye

Dear sirs

now i have two Repositories , one in my PC and other is in my USB flash , now how i sync between them

say i have edit the PC one and i commit it and now it became vers. 6 but the USB is still at ver. 5 , i want to transfer only the changes done after ver. 5 , the easy way that i delete USB one and create a clone , but the Repository is some large and takes a lot to clone so i want to sync the changes only

thanks all
bye

推荐答案

使用汞同步"菜单选项,然后从PC版本中,可以将远程存储库设置为闪存驱动器,然后推送更新的版本.然后,您必须从闪存驱动器进行更新",以检出所有相同的文件.

您也应该可以用其他方法做到这一点-将闪存驱动器上的遥控器设置到PC位置,然后拉出并更新.
Use the "Hg synchronize" menu option, then from the PC version you can set the remote repository to your flash drive and push the updated version. Then you must do an "update" from the flash drive to get all the same files checked out.

You should be able to do it the other way around too - set the remote on the flash drive to the PC location, then pull and update.


这篇关于如何使用TortoiseHg同步两个存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆