How to stop tracking a file without deleting the file

Martin Chabot chabotm at gmail.com
Tue Jun 17 12:03:39 CDT 2008


Oups, I have only checked the option section of the hg remove help.

Thanks Matt

Matt Mackall wrote:
> On Tue, 2008-06-17 at 12:43 -0400, Martin Chabot wrote:
>   
>> I have added accidentally some files in the repository that I don't want 
>> to be tracked. I modified my .hgignore, committed it. This does not do 
>> the trick. I think I need to do a hg remove.  The problem is that it 
>> removes the file in my working directory and I don't want that. I 
>> imagine there is a way of doing this.
>>     
>
> Have you tried 'hg help remove' yet? You want 'hg rm -Af'.
>
>   



More information about the Mercurial mailing list