如何让 Mercurial 忽略名称中包含空格的特定文件夹

发布于 2024-10-09 02:03:02 字数 138 浏览 0 评论 0原文

Mercurial 中有很多关于如何忽略文件夹的示例,但我在忽略名称中包含空格的文件夹时遇到了麻烦。我想忽略一个名为 Translation Files 的文件夹,

我尝试在其中包含引号,但没有成功。有人知道该怎么做吗?

There are plenty of examples of how to ignore folders in Mercurial but I'm having trouble ignoring a folder that has a space in its name. I want to ignore a folder called Translation Files

I've tried wrapping in it quotes but no success. Anybody know how to do it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

多孤肩上扛 2024-10-16 02:03:02

除非我没有从你的问题中读出某些内容,否则简单的方法效果最好:

glob:Translation Files/

这对我有用,我添加了这个目录,添加了一个文件,验证了提交/添加删除等想要添加它,然后重新执行操作,但是添加了忽略掩码,文件被忽略。

Unless there's something I'm not reading out of your question, the simple approach works best:

glob:Translation Files/

This works for me, I added this directory, added a file, verified that commit/addremove etc. wanted to add it, then redid the operation but added the ignore mask, and the file was ignored.

会傲 2024-10-16 02:03:02

.hgignore:

语法:glob
翻译文件/

.hgignore:

syntax: glob
Tranlation Files/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文