我想忽略一些用随机数字名称甚至 float 生成的文件夹,但我不知道如何查看它们以包含在 .gitignore
文件中
最佳答案
怎么样:
* //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
请注意,这些是 shell glob 而不是正则表达式。
关于Git 忽略随机数字文件夹名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40616603/