hg - Ignore directory at root only

て烟熏妆下的殇ゞ 提交于 2019-11-30 05:46:42

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.

As of Mercurial 4.9, you can use syntax: rootglob to insert rooted glob patterns.

New rootglob: filename pattern for a glob that is rooted at the root of the repository. See hg help patterns and hg help hgignore for details

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!