Mercurial:全局忽略文件 [英] Mercurial: Globally Ignore Files

查看:72
本文介绍了Mercurial:全局忽略文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解.hgignore,以及如何逐个项目地忽略文件.我想忽略所有Mercurial存储库中的内容.

I know about .hgignore and how I can ignore files on a project-by-project basis. I want to ignore stuff for all Mercurial repositories.

我可以在.hgrc中贴一些东西吗?或在我的$HOME路径中放入一个.hgignore(我已经尝试过了,但是也许做错了).

Is there something I can stick in .hgrc? Or put a .hgignore in my $HOME path (I tried that already but maybe I did something wrong).

推荐答案

您可以在

You can add a path to a global or per-user ignore file in the [ui] section of your global/user hgrc or Mercurial.ini:

[ui]
ignore = ~/.hgignore

在Windows上:

[ui]
ignore = %USERPROFILE%\.hgignore

这篇关于Mercurial:全局忽略文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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