开发者

Ignoring tracked items from the repository

开发者 https://www.devze.com 2023-03-23 20:12 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消