1

We got a whole system using hglib for quite some time and we're creating an abstraction layer to customize some needs of the system, but I'm having trouble understanding an equivalent of

hg clone source destination --noupdate in Git

-U --noupdate the clone will include an empty working directory (only a repository)

https://www.mercurial-scm.org/repo/hg/help/clone

Thank you in advances.

1 Answers1

0

After a lot of web browsing, found a good equivalent:

git clone --no-checkout

My use case:

We wanted a bare clone of some sort, the way --noupdate flag does for HG.

Technically speaking, in git I guess it would be jut cloning without checking out on it.

If someone else has a good answer, please you're welcome to edit this answer.

  • 1
    Do you want to have a bare clone (one without working copy at all, `git clone --bare`) – Rudi Feb 27 '20 at 14:07