comparison help/a-10.html @ 525:721a8e30822b

Merge
author Chris Cannam
date Thu, 17 Nov 2011 17:12:39 +0000
parents 21aa41b62c3a
children
comparison
equal deleted inserted replaced
524:eea753f1cae8 525:721a8e30822b
1 <link rel="stylesheet" type="text/css" href="help.css"/>
2
3
4 <h2>Someone gave me a repository URL and asked me to clone it</h2>
5
6 <p>A Mercurial repository location is usually described by a URL, like
7 that of a website.</p>
8
9 <p>For example, the URL for the repository containing the source code for
10 EasyMercurial itself is <code>https://bitbucket.org/cannam/easyhg</code>.</p>
11
12 <p>To get a copy of the files in a repository, you need to <i>clone</i> the
13 repository from the remote URL into a folder on your own computer. To
14 do this,</p>
15
16 <p><b>1. Click the Open toolbar button or use File -> Open</b></p>
17
18 <p><center><img src="images/openremote50.png"></center></p>
19
20 <p><b>2. Select &ldquo;Remote repository&rdquo; as the thing you want to open</b></p>
21
22 <p><b>3. Enter the repository URL into the URL field</b></p>
23
24 <p><b>4. Give the name of a folder on your local computer to clone into</b> &ndash;
25 this folder will be created for you, so it shouldn't be one that already
26 exists</p>
27
28 <p><b>5. Click OK</b></p>
29
30 <p>If the remote repository has restricted access, you may be asked to
31 provide a username and password to log in to the server it is hosted
32 on. If the repository is large, you may have to wait a while for all the
33 data to be transferred.</p>
34
35 <p>Provided the clone has been successful, you should now have a local
36 repository to start working in.
37 <ul><li>Note: the equivalent Mercurial command for this is <b>hg clone</b></li></ul>