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