comparison help/a-20.html @ 496:fb95d70c80d5

More help
author Chris Cannam
date Fri, 19 Aug 2011 16:30:43 +0100
parents
children a9032181c37d
comparison
equal deleted inserted replaced
495:e6141a238811 496:fb95d70c80d5
1 <link rel="stylesheet" type="text/css" href="help.css"/>
2 <p><a href="topics.html">Back to Topics</a></p><hr>
3
4
5 <h2>I've added a new file: what do I do with it?</h2>
6
7 <p>When you add a new file in the working folder, you normally want to
8 ensure that Mercurial keeps track of changes to that file &ndash; and that
9 the file is included in all copies of the repository. To do this, you
10 need to tell Mercurial to <i>track</i> the file by adding it to version
11 control.</p>
12
13 <p>EasyMercurial shows files that have been created but not added in the
14 <b>&ldquo;Untracked&rdquo;</b> file list under &ldquo;My Work&rdquo;. (If your file is not listed
15 there, try clicking the Refresh button.)</p>
16
17 <p><b>1. Find the file you want to add in the Untracked list and select it</b></p>
18
19 <p><b>2. Click Add in the toolbar on the left of the window</b></p>
20
21 <p>The file will be moved to the <b>&ldquo;Added&rdquo;</b> list. This tells Mercurial to
22 track the file. The next time you commit, the contents of your new
23 file will be recorded as part of that change set.
24 <ul><li>Note: the equivalent Mercurial command for this is <b>hg add</b></li></ul></p>
25
26 <p>Of course, you don't always want to track every file in your working
27 copy. Object files generated by a compiler, output files from tests,
28 etc should often not be included in version control. You can ensure
29 that such files don't show up in the Untracked list by right-clicking
30 on them and choosing <b>&ldquo;Ignore..."</b>.</p>
31
32 <hr><p><a href="topics.html">Back to Topics</a></p>