From 5e4f41603c465bc87b9887977041c5e454fccfc1 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Fri, 15 Dec 2017 10:28:53 +0000 Subject: [PATCH] hg-clone: add page --- pages/common/hg-clone.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/hg-clone.md diff --git a/pages/common/hg-clone.md b/pages/common/hg-clone.md new file mode 100644 index 0000000000..174d10245f --- /dev/null +++ b/pages/common/hg-clone.md @@ -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}}`