如何对所有丢失的文件进行Mercurial的"hg删除"? [英] How to do Mercurial's 'hg remove' for all missing files?

查看:102
本文介绍了如何对所有丢失的文件进行Mercurial的"hg删除"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用它从仓库中删除文件:

I use this to remove a file from the repo:

hg remove <full file path> 

您可以使用什么命令对已在本地删除的所有文件执行hg remove?

What command can you use to do an hg remove on all files that have been deleted locally?

通过本地删除,我的意思是当您执行hg status时显示为!的内容.

By deleted locally, I mean those showing up with an ! when you do hg status.

对于添加,您只需执行hg add即可添加所有新文件(以?为前缀的文件).

For adds, you can just do hg add to add all new files (those prefixed with ?).

推荐答案

这将添加所有不被忽略的新文件,并删除所有本地丢失的文件

This will add all new files that are not ignored, and remove all locally missing files

hg addremove

其中任何一个都将删除所有本地丢失的文件(它们是同一命令)

Either of these will remove all locally missing files(They are the same command)

hg remove --after
hg remove -A

这篇关于如何对所有丢失的文件进行Mercurial的"hg删除"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆