Mercurial > hg > easyhg
comparison help/topics/20.txt @ 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 {Making changes} | |
2 | |
3 I've added a new file: what do I do with it? | |
4 | |
5 When you add a new file in the working folder, you normally want to | |
6 ensure that Mercurial keeps track of changes to that file -- and that | |
7 the file is included in all copies of the repository. To do this, you | |
8 need to tell Mercurial to _track_ the file by adding it to version | |
9 control. | |
10 | |
11 EasyMercurial shows files that have been created but not added in the | |
12 *"Untracked"* file list under "My Work". (If your file is not listed | |
13 there, try clicking the Refresh button.) | |
14 | |
15 *1. Find the file you want to add in the Untracked list and select it* | |
16 | |
17 *2. Click Add in the toolbar on the left of the window* | |
18 | |
19 The file will be moved to the *"Added"* list. This tells Mercurial to | |
20 track the file. The next time you commit, the contents of your new | |
21 file will be recorded as part of that change set. | |
22 | |
23 * Note: the equivalent Mercurial command for this is *hg add* | |
24 | |
25 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 *"Ignore..."*. | |
30 |