【发布时间】:2020-05-16 11:46:51
【问题描述】:
我们已经使用hglib 得到了一个完整的系统,并且我们正在创建一个抽象层来定制系统的一些需求,但我无法理解相当于
hg clone source destination --noupdate 在 Git 中
-U --noupdate the clone will include an empty working directory (only a repository)
https://www.mercurial-scm.org/repo/hg/help/clone
提前谢谢你。
【问题讨论】:
-
不完全一样(嗯,根本不一样:它比以前更糟糕了)但考虑
git clone --bare。 -
@torek
git clone --no-checkout怎么样?不一样吗? -
git clone --no-checkout肯定更接近hg clone -U。使用哪个取决于您计划对生成的存储库做什么。
标签: git version-control mercurial equivalent version-control-migration