简体   繁体   English

如何在mercurial中删除特定类型的文件?

[英]How to remove files of specific type in mercurial?

I created .hgignore file. 我创建了.hgignore文件。 But forgot about .db files. 但忘了.db文件。 So after hg add this files were added to be tracked. 所以在hg add之后hg add这些文件进行跟踪。 I found the remove command but can not figure out how to remove all the .db with a single command 我找到了remove命令,但无法弄清楚如何使用单个命令删除所有.db

自己找到了:

hg forget "glob:**.db"

This works: 这有效:

hg forget -I '**.db'

Don't forget to hg commit that change. 不要忘记hg commit更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM