微擎项目中的 .gitignore 文件
维护微擎项目时,由于庞大的源码体积,将其纳入 git 会遇到困难。因此,需要一份 .gitignore 文件来指定忽略的文件夹。本文提供了官方开源的 .gitignore 文件,供大家参考。
.project .metadata *.tmp local.properties .idea/**/* data/**/* !data/**/db-1.x.php attachment/**/* !attachment/images/global/**/* addons/**/* framework/builtin/core/module.cer /.env /.php_cs.cache
此文件包含以下内容:
使用此 .gitignore 文件,可以有效减小微擎项目 git 仓库中的文件体积,避免因源码过大而出现问题。