Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git --bare clone analogue for Hg (Mercurial)

Tags:

git

mercurial

I want to checkout only history of a repository.

Does there any option to clone history as like as git --bare clone <repo_url> option?

like image 901
Vladislav Rudskoy Avatar asked Oct 22 '25 01:10

Vladislav Rudskoy


1 Answers

I don't use Mercurial, but from the help I'd say the nearest you will get is

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

Update as per answer of @Ry4anBrase:

For an existing repository hg update null deletes all local files. This checks out the null revision, which is the revision before revision 0, and contains no files. If you check out that revision you local files go away and you've got a bare clone as a result.

like image 138
Vampire Avatar answered Oct 25 '25 15:10

Vampire