[英]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.