Options (4)
-b, --branchbooleanClone a repository to the head of a specific branch, ignoring later commits
Example:
hg clone {{[-b|--branch]}} {{branch}} {{remote_repository_source}}-U, --noupdatebooleanClone a repository with only the `.hg` directory, without checking out files
Example:
hg clone {{[-U|--noupdate]}} {{remote_repository_source}}-u, --updaterevbooleanClone a repository to a specific revision, tag, or branch, keeping the entire history
Example:
hg clone {{[-u|--updaterev]}} {{revision}} {{remote_repository_source}}-r, --revbooleanClone a repository up to a specific revision without any newer history
Example:
hg clone {{[-r|--rev]}} {{revision}} {{remote_repository_source}}Examples (5)
Clone a repository to a specified directory
hg clone remote_repository_source destination_pathClone a repository to the head of a specific branch, ignoring later commits
hg clone [-b|--branch] branch remote_repository_sourceClone a repository with only the `.hg` directory, without checking out files
hg clone [-U|--noupdate] remote_repository_sourceClone a repository to a specific revision, tag, or branch, keeping the entire history
hg clone [-u|--updaterev] revision remote_repository_sourceClone a repository up to a specific revision without any newer history
hg clone [-r|--rev] revision remote_repository_sourcemade by @shridhargupta | data from tldr-pages