如何使用Mercurial忘记所有已删除的文件
问题描述:
我是Mercurial的新手,在清理了项目中的图像文件夹后,我会看到很多文件,带有!处于汞状态".我可以为每一个键入"hg忘记",但是必须有一种更简单的方法.
I am new to Mercurial and after a cleanup of the image folder in my project, I have a ton of files showing with ! in the 'hg status'. I can type a 'hg forget ' for each, but there must be an easier way.
那么我如何告诉Mercurial忘记文件夹中所有已删除(状态=!)的文件?
So how can I tell mercurial to forget about all the removed (status = !) files in a folder?
答
如果您还可以添加任何存在且不会被忽略的文件,则:
If you're also okay with adding any files that exist and aren't ignored then:
hg addremove
将是一种流行的方法.