Mercurial > hg > easyhg
comparison help/a-20.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>I've added a new file: what do I do with it?</h2> | |
5 | |
6 <p>When you add a new file in the working folder, you normally want to | |
7 ensure that Mercurial keeps track of changes to that file – and that | |
8 the file is included in all copies of the repository. To do this, you | |
9 need to tell Mercurial to <i>track</i> the file by adding it to version | |
10 control.</p> | |
11 | |
12 <p>EasyMercurial shows files that have been created but not added in the | |
13 <b>“Untracked”</b> file list under “My work”. (If your file is not listed | |
14 there, try clicking the Refresh button.)</p> | |
15 | |
16 <p><b>1. Find the file you want to add in the Untracked list and select it</b></p> | |
17 | |
18 <p><b>2. Click Add in the toolbar on the left of the window</b></p> | |
19 | |
20 <p>The file will be moved to the <b>“Added”</b> list. This tells Mercurial to | |
21 track the file. The next time you commit, the contents of your new | |
22 file will be recorded as part of that change set. | |
23 <ul><li>Note: the equivalent Mercurial command for this is <b>hg add</b></li></ul></p> | |
24 | |
25 <p>Of course, you don't always want to track every file in your working | |
26 copy. Object files generated by a compiler, output files from tests, | |
27 etc should often not be included in version control. You can ensure | |
28 that such files don't show up in the Untracked list by right-clicking | |
29 on them and choosing <b>“Ignore..."</b>.</p> | |
30 |