How to delete files of a certain type in mercurial?

I created a .hgignore file. But forgot about .db files. Therefore, after hg add these files were added for tracking. I found the remove command but can't figure out how to remove all .db with one command

+4
source share
2 answers

Found myself:

 hg forget "glob:**.db" 
+6
source

It works:

hg forget -I '**.db'

Remember to change the hg commit .

+1
source

Source: https://habr.com/ru/post/1392309/


All Articles