In my project's .hgignore
, I want to exclude /static/
(i.e., the static folder at the root of the directory), but not /templates/static/
. How would I configure .hgignore
to allow this?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can include syntax: regexp
at the beginning of .hgignore and then use perl regex syntax to root a directory by using ^
. So just ^static
should do the work.