我使用
git sparse-checkout
仅将我感兴趣的文件存储在磁盘上。我无法弄清楚如何匹配多个模式。
git sparse-checkout set --no-cone "**/*.tf"
查看所有
.tf
文件
git sparse-checkout set --no-cone "**/*.tf.json"
查看所有
.tf.json
文件
如何一次检出符合两种模式的所有文件?我试过了
git sparse-checkout set --no-cone "**/*.tf **/*.tf.json"
git sparse-checkout set --no-cone "**/*.tf,**/*.tf.json"
git sparse-checkout set --no-cone "**/*.tf\n**/*.tf.json"
但是这些选项都不符合任何一种模式