我可以使用前缀拼写文件吗? [英] Can I gitignore files with a prefix?

查看:129
本文介绍了我可以使用前缀拼写文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在同一个文件夹中有 a.css b.css 文件。我的框架将这些文件合并到一个名为 temp.a12cab4598347b07f0079d.css
的文件中。只要有css文件就会生成此文件,因此文件夹匹配不好。
我可以忽略所有这些文件:

$ c $ temp $ * css

谢谢

解决方案

按预期工作。



此外,如果您需要在任何子目录中递归执行此操作,请执行以下操作:

  ** / temp。*。css 


I have file a.css and b.css in the same folder. My framework combines those files in a file called temp.a12cab4598347b07f0079d.css This file will be generated wherever there is a css file, so folder matching is no good. Can I ignore all these files using something like

temp.*.css

Thank you

解决方案

It will work as expected.

Also, if you need to do this recursively in any subdirectory

**/temp.*.css

这篇关于我可以使用前缀拼写文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆