我如何从“主"服务器获取更改.在Google代码上托管的项目中,是否有存储库? [英] How can I get the changes from a "master" repository in mercurial for a project hosted on google code?
问题描述
我从code.google.com托管的项目中创建服务器"克隆.我从计算机中的该存储库创建一个克隆,然后进行一些更改;一切顺利.
I create a "server" clone from a project hosted at code.google.com. I create a clone from that repository in my machine and push some changes; everything goes well.
现在,主存储库已进行了一些更改,我想将其更改.如何通过这些更改更新服务器"克隆?
Now the master repository has some changes and I want to pull them. How do I get my "server" clone updated with those changes?
推荐答案
hg pull -u google_code_url
-u表示自动更新您的工作副本.您可以在.hg/hgrc
文件中设置(如果尚不存在)默认URL:
The -u means automatically update your working copy. You can set (if it's not already there) a default URL in the .hg/hgrc
file:
[paths]
default = pull_url
default-push = push_url
然后,您可以执行以下操作:
Then, you can just do:
hg push
hg pull -u
当然,您仍然可以手动指定其他位置.
Of course, you can still specify a different location manually.
这篇关于我如何从“主"服务器获取更改.在Google代码上托管的项目中,是否有存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!