mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-09 17:34:07 +02:00
hg-clone: add page
This commit is contained in:
parent
9eb1e4f686
commit
5e4f41603c
1 changed files with 23 additions and 0 deletions
23
pages/common/hg-clone.md
Normal file
23
pages/common/hg-clone.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# hg clone
|
||||
|
||||
> Create a copy of an existing repository in a new directory.
|
||||
|
||||
- Clone a repository to a specified directory:
|
||||
|
||||
`hg clone {{remote_repository_source}} {{destination_path}}`
|
||||
|
||||
- Clone a repository on a specific branch:
|
||||
|
||||
`hg clone --branch {{branch}} {{remote_repository_source}}`
|
||||
|
||||
- Clone a repository with a clean working directory:
|
||||
|
||||
`hg clone --noupdate {{remote_repository_source}}`
|
||||
|
||||
- Clone a repository to a specific revision, tag or branch:
|
||||
|
||||
`hg clone --updaterev {{revision}} {{remote_repository_source}}`
|
||||
|
||||
- Clone a repository up to a specific revision without any newer history:
|
||||
|
||||
`hg clone --rev {{revision}} {{remote_repository_source}}`
|
Loading…
Add table
Reference in a new issue