1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 16:13:31 +02:00

Applied changes to the hg-clone page

This commit is contained in:
pxgamer 2017-12-18 12:11:06 +00:00
parent 8402262b06
commit f0d04fc646
No known key found for this signature in database
GPG key ID: 8F15E14C0F7BA063

View file

@ -6,15 +6,15 @@
`hg clone {{remote_repository_source}} {{destination_path}}`
- Clone a repository on a specific branch:
- Clone a repository to the head of a specific branch, ignoring later commits:
`hg clone --branch {{branch}} {{remote_repository_source}}`
- Clone a repository with a clean working directory:
- Clone a repository with only the .hg directory, without checking out files:
`hg clone --noupdate {{remote_repository_source}}`
- Clone a repository to a specific revision, tag or branch:
- Clone a repository to a specific revision, tag or branch, keeping the entire history:
`hg clone --updaterev {{revision}} {{remote_repository_source}}`