我尝试了以下hgignore文件,但是在运行hg status
命令时列出了两个期望被忽略的文件夹
syntax: glob
Somefolder/**
但是当我运行hg status
所以我厌倦了这个版本(应该忽略一切)
syntax: glob
**
但运行hg status
命令的结果相同。
答案 0 :(得分:1)
那么,我不确定你的环境有什么问题,因为你所做的应该有效。它适用于我的:
santa@samoyed:/tmp/MockProject$ tree .
.
└── Somefolder
└── Subfolder
└── ph.txt
2 directories, 1 file
santa@samoyed:/tmp/MockProject$ cat .hgignore
syntax: glob
Somefolder/**
santa@samoyed:/tmp/MockProject$ hg status
? .hgignore
santa@samoyed:/tmp/MockProject$