hg - Ignore directory at root only

后端 未结 2 360
轮回少年
轮回少年 2020-12-29 20:37

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/

2条回答
  •  悲&欢浪女
    2020-12-29 21:24

    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.

提交回复
热议问题