When it comes to Mercurial;
What exactly is the difference between the following:
- Stop Tracking
- Ignore
Google Search, SE search brings no clear examples / results on the matter.
When it comes to Mercurial;
What exactly is the difference between the following:
Google Search, SE search brings no clear examples / results on the matter.
Generally speaking, as it isn't clear in what context you came across those terms:
Ignore adds a file name pattern to the .hgignore
file. It means any files matching the pattern will not be version controlled unless they have already been added (by hg add
or hg addrem
). So any files that are already part of the repository will not be affected by .hgignore
.
Stop Tracking (hg remove
or hg forget
) means that Mercurial will not record any changes made to the file and the file will no longer be part of the repository. If the file is still present in the file system, it will show up as ?
(not tracked). This action takes effect with the next commit, not immediately.