首页 > 解决方案 > git中的hg clone --noupdate等价物是什么?

问题描述

我们得到了一个完整的系统使用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

谢谢你的进步。

标签: gitversion-controlmercurialequivalentversion-control-migration

解决方案


经过大量的网页浏览,找到了一个很好的等价物:

git clone --no-checkout

我的用例:

我们想要某种类型的裸克隆,就像--noupdateflag 对 HG 所做的那样。

从技术上讲,在 git 中我猜它只是克隆而不检查它。

如果其他人有好的答案,欢迎您编辑此答案。


推荐阅读