How to stop tracking a file without deleting the file

STenyaK (Bruno Gonzalez) stenyak at gmail.com
Tue Jun 17 11:52:18 CDT 2008


On 17/06/2008, Martin Chabot <chabotm at gmail.com> 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.

I usually do:
$ cp file file.copy
$ hg rm file
$ mv file.copy file
Maybe there's a faster way, i don't know.

-- 
Saludos,
     Bruno González

_______________________________________________
Msn/Jabber: stenyak AT gmail.com
ICQ: 153709484
http://www.stenyak.com



More information about the Mercurial mailing list