我可以发誓有一种方法可以在 hg 存储库中保留本地忽略文件,即功能与 .hgignore 类似的文件,但未 checkin 存储库。例如,如果使用不同的 IDE,这可用于忽略对 IDE 项目文件的更改。我很难找到它是如何完成的。有人还记得细节吗?
最佳答案
This这就是我一直在寻找的。p>
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/