jbr*_*eed 4 mercurial hgignore
There's a particular file in my repository, libraries/database.php, that I need ignored. However, I can't get the syntax to recognize the file - I've tried **/libraries/**/database.php
and libraries/database.php
in glob, and ^.libraries/database.php
in regex, but neither of them work. What should I do?
经过几个小时的跟踪,在网上找到了所有的建议,我发现我总是在.hgignore中正确地做,但.hgignore不会忽略目前被mercurial跟踪的文件.
你必须这样做
hg forget mydir/myfile.ext
Run Code Online (Sandbox Code Playgroud)
或者将文件添加到.hgignore不会生效.
syntax: glob
mydir/myfile.ext
Run Code Online (Sandbox Code Playgroud)
那以上就行了.
归档时间: |
|
查看次数: |
4084 次 |
最近记录: |