在 VisualHG 中使用 RegEx 忽略文件/路径

发布于 2024-08-23 03:01:17 字数 311 浏览 5 评论 0原文

我正在使用 VisualHG 1.0.7,似乎无法忽略我想要的文件。

我遇到的行为是我输入的用于忽略文件的正则表达式值似乎仅适用于标记为 ?: 未知的项目。

我正在寻找的是一种添加正则表达式值以忽略以下内容的方法:

  • 任何 bin 目录中的
  • 文件 任何 obj 目录中
  • 的文件具有缓存扩展名的文件
  • 具有 suo 扩展名的文件

我可以编写正确的正则表达式,但它们没有被应用提交视图中的所有文件。

我应该“忘记”这些文件,还是应该有其他方法来完成此任务?

I am using VisualHG 1.0.7 and cannot seem to ignore the files that I want.

The behavior I am experiencing is the RegEx values I enter for ignoring files appears to only be applied to items marked as ?: unknown.

What I am looking for is a way to add RegEx values to ignore the following:

  • files in any bin directory
  • files in any obj directory
  • files with the cache extension
  • files with the suo extension

I can write the correct RegEx but they aren't being applied to all of the files in the commit view.

Should I just 'forget' these files, or is there another way I should be accomplishing this?

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

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

发布评论

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

评论(1

月隐月明月朦胧 2024-08-30 03:01:17

这是设计使然:hgignore 规则仅适用于未跟踪的文件 - 因此您必须从存储库中排除这些文件。

检查这个 回答有关“hg忘记”的详细信息

It's by design: hgignore rules are for untracked files only - so you must exclude the files from the repository.

Check this answer for details about 'hg forget'

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