【发布时间】:2014-10-02 14:24:05
【问题描述】:
我的源代码树中有一些临时文件夹。我在 .hgignore 中忽略了它们,如下所示
temp/
它忽略所有临时文件夹,例如
a/temp
b/temp
a/c/temp
b/d/temp
但我希望在存储库中包含一个特定的临时文件夹,例如“a/c/temp”。所以我将它排除在 .hgignore 中,如下所示。
!a/c/temp
/temp
但它不起作用。 “a/c/temp”文件夹仍然被忽略。 有什么想法吗?
【问题讨论】:
-
看看下面的问题http://stackoverflow.com/questions/1248570/git-ignore-everything-except-subdirectory;它适用于 git,但它可以适用于 mercurial