如何让 Mercurial 忽略名称中包含空格的特定文件夹
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除非我没有从你的问题中读出某些内容,否则简单的方法效果最好:
这对我有用,我添加了这个目录,添加了一个文件,验证了提交/添加删除等想要添加它,然后重新执行操作,但是添加了忽略掩码,文件被忽略。
Unless there's something I'm not reading out of your question, the simple approach works best:
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.
.hgignore:
语法:glob
翻译文件/
.hgignore:
syntax: glob
Tranlation Files/