Ignoring tracked items from the repository
I have a mercurial
project of my website. I have symlinked
(Mac OS X aliases
) lot of files from here `to elsewhere. I made a mistake to add and commit all the aliases in my repository too.
However now I want to keep them untrack开发者_JAVA百科ed, so I added an entry in my .hgignore
-
syntax:glob
*.pdf
*alias
[... snipped ...]
But I still see them when I do hg status
$ hg status
M documents/.../x alias
M documents/.../y alias
M documents/.../z alias
[... snipped ...]
You need to tell hg to remove or forget these files, because right now they are still in your repository, and hg won't ignore files that it's already tracking--it will just ignore files that aren't already tracked.
精彩评论