Chris@496
|
1 <link rel="stylesheet" type="text/css" href="help.css"/>
|
Chris@496
|
2 <p><a href="topics.html">Back to Topics</a></p><hr>
|
Chris@496
|
3
|
Chris@496
|
4
|
Chris@497
|
5 <h2>I want to remove, rename, or copy a file</h2>
|
Chris@496
|
6
|
Chris@497
|
7 <p>To remove or rename a file, you first need to find it in the list of
|
Chris@497
|
8 files under “My work”. This area normally shows only those files that
|
Chris@497
|
9 you have changed since your last commit: if it isn't one of those,
|
Chris@497
|
10 toggle the “Show all files” option at the bottom of the window.</p>
|
Chris@496
|
11
|
Chris@497
|
12 <p>To <b>remove</b> a file from version control so that changes to it are no longer tracked:</p>
|
Chris@497
|
13
|
Chris@497
|
14 <p><b>1. Select the file you want to remove in the list of files under “My work”.</b></p>
|
Chris@497
|
15
|
Chris@497
|
16 <p><b>2. Click Remove in the toolbar on the left of the window</b></p>
|
Chris@497
|
17
|
Chris@497
|
18 <p>The file will be moved to the <b>“Removed”</b> list. This tells Mercurial
|
Chris@497
|
19 to stop tracking the file the next time you commit. The file itself
|
Chris@497
|
20 is not removed from the disc: you will need to do that using your
|
Chris@497
|
21 system file manager afterwards.
|
Chris@497
|
22 <ul><li>Note: the equivalent Mercurial command for this is <b>hg remove -Af</b></li></ul></p>
|
Chris@497
|
23
|
Chris@497
|
24 <p>To <b>rename</b> or <b>copy</b> a file:</p>
|
Chris@497
|
25
|
Chris@497
|
26 <p><b>1. Select the file you want to remove in the list of files under “My work”.</b></p>
|
Chris@497
|
27
|
Chris@497
|
28 <p><b>2. Right-click and select “Rename..." or “Copy..." on the context menu</b></p>
|
Chris@497
|
29
|
Chris@497
|
30 <p><b>3. Enter a new name for the file.</b>
|
Chris@497
|
31 <ul><li>Note: the equivalent Mercurial commands are <b>hg rename</b> and <b>hg copy</b></li></ul></p>
|
Chris@496
|
32
|
Chris@496
|
33
|
Chris@496
|
34
|
Chris@496
|
35 <hr><p><a href="topics.html">Back to Topics</a></p>
|