Show More
@@ -1090,6 +1090,33 b' def clone(ui, source, dest=None, **opts)' | |||||
1090 | g) the tipmost head of the default branch |
|
1090 | g) the tipmost head of the default branch | |
1091 | h) tip |
|
1091 | h) tip | |
1092 |
|
1092 | |||
|
1093 | Examples: | |||
|
1094 | ||||
|
1095 | - clone a remote repository to a new directory named hg/:: | |||
|
1096 | ||||
|
1097 | hg clone http://selenic.com/hg | |||
|
1098 | ||||
|
1099 | - create a lightweight local clone:: | |||
|
1100 | ||||
|
1101 | hg clone project/ project-feature/ | |||
|
1102 | ||||
|
1103 | - clone from an absolute path on an ssh server (note double-slash):: | |||
|
1104 | ||||
|
1105 | hg clone ssh://user@server//home/projects/alpha/ | |||
|
1106 | ||||
|
1107 | - do a high-speed clone over a LAN while checking out a | |||
|
1108 | specified version:: | |||
|
1109 | ||||
|
1110 | hg clone --uncompressed http://server/repo -u 1.5 | |||
|
1111 | ||||
|
1112 | - create a repository without changesets after a particular revision:: | |||
|
1113 | ||||
|
1114 | hg clone -r 04e544 experimental/ good/ | |||
|
1115 | ||||
|
1116 | - clone (and track) a particular named branch:: | |||
|
1117 | ||||
|
1118 | hg clone http://selenic.com/hg#stable | |||
|
1119 | ||||
1093 | See :hg:`help urls` for details on specifying URLs. |
|
1120 | See :hg:`help urls` for details on specifying URLs. | |
1094 |
|
1121 | |||
1095 | Returns 0 on success. |
|
1122 | Returns 0 on success. |
General Comments 0
You need to be logged in to leave comments.
Login now