Git忽略随机数字文件夹名称

efi*_*ida 2 git

我想忽略一些使用随机数字名称甚至浮点数生成的文件夹,但我不知道如何查看它们以包含在.gitignore文件中

Chr*_*ris 5

怎么样:

* //Ignore everything

!*[!0-9.]* //Except things with some characters besides numbers (and period, for decimals) in them
!*.*.* //And except things with two periods, since these can't be numbers
Run Code Online (Sandbox Code Playgroud)

请注意,这些是 shell globs 而不是正则表达式。