首页 文章

Mercurial .hgignore

提问于
浏览
0

我需要忽略整个项目树中的所有文件,由Mercurial版本化,以特定字符开头 . 让我们说下划线(或者可能是其他一些) .

我在谷歌搜索了很多,但我找不到正确的glob语法 . 我找到glob expression test environment,我可以尝试模式,但没有什么对我有用 .

考虑以下项目结构:

/function/_backup/file1.php
/function/_backup/file2.php
/function/Class/A.php
/function/Class/_B.php
/_graph/1.jpg
/.hgignore
/.htaccess
/_index.php
/index.php

我需要传播到存储库的唯一文件是 A.php.htaccessindex.php .

问题是:我的.hgignore应该怎么样?

1 回答

  • 1

    您应该将以下行添加到 .hgignore

    glob:_*
    

相关问题