如何使用Mercurial忘记所有已删除的文件 [英] How to forget all removed files with Mercurial
本文介绍了如何使用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
将是一种流行的方法.
这篇关于如何使用Mercurial忘记所有已删除的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文