version-control - hg 本地忽略

标签 version-control mercurial dvcs hgignore

我可以发誓有一种方法可以在 hg 存储库中保留本地忽略文件,即功能与 .hgignore 类似的文件,但未 checkin 存储库。例如,如果使用不同的 IDE,这可用于忽略对 IDE 项目文件的更改。我很难找到它是如何完成的。有人还记得细节吗?

最佳答案

This这就是我一直在寻找的。

Add the following to the repo's .hg/hgrc:

[ui]
ignore = /path/to/repo/.hg/hgignore

and create a new file .hg/hgignore beside it. This new file will be untracked, but work the same as the versioned .hgignore file for this specific working copy. (The /path/to/repo bit is unfortunate but necessary to make it work when invoking 'hg' from within a subdir of the repo.)

关于version-control - hg 本地忽略,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/996562/

相关文章:

git - 将 bonobo git 服务器存储库移动到另一个驱动器

ruby-on-rails - 使用 Gerrit 部署 Ruby on Rails 数据库

mercurial - 通过 USB 闪存驱动器使用 Mercurial

command-line - 已有未提交的更改时,如何使用hg命令行应用多个补丁?

authentication - 带有 HTTP 服务器凭据的 hg push

git - 如果使用 Mercurial 或 Git,经常提交文件好吗?

java - 添加svn :ignore property on files that already are under control

version-control - 使用 Subversion 和 SharePoint 帮助进行配置管理

Mercurial - 大文件和 bitbucket

svn - 大型项目的分布式版本控制 - 可行吗?