“拉"是Mercurial源代码控制存储库中“克隆"的同义词吗? [英] Is 'pull' a synonym for 'clone' in a Mercurial source-control repository?
问题描述
我正在看到命令"pull",并想知道它与"clone"有何不同.这两个术语似乎都意味着从某个远程存储库中检索代码.这里有一些细微的区别吗?
I'm seeing the command 'pull' and wondering how that's different from a 'clone'. Both terms seem to imply retrieving code from some remote repository. Is there some subtle distinction here?
推荐答案
hg clone
是如何制作远程存储库的本地副本. Subversion等效为svn checkout
.
hg clone
is how you make a local copy of a remote repository. The Subversion equivalent is svn checkout
.
hg pull
从另一个存储库中提取更改. hg update
将这些更改应用于本地存储库. hg pull -u
等效于hg pull; hg update
.等同于hg pull -u
的Subversion是svn update
.
hg pull
pulls changes from another repository. hg update
applies those changes to the local repository. hg pull -u
is equivalent to hg pull; hg update
. The Subversion equivalent to hg pull -u
is svn update
.
这篇关于“拉"是Mercurial源代码控制存储库中“克隆"的同义词吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!