Godot, huge files and Github

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By FelicePollano

While working with Godot I noticed in the .import folder many big files being created, things goes even worst as soon I start to try lightmaps. At a certain point Github start to refuse these files. Looks like these files are generated, so there is some smartest way of sharing the project that the one I’m doing now. Is there some trick to ignore these big file and force godot to recreate them when a new user clones the project?
While looks pretty good to .gitignore the .import folder, the lightmaos generated files lies next to project files, and size is unhandable by github. I can rebake the lightmaps, but there is no friendly message by godot suggesting this, instead it complains about missing dependency

:bust_in_silhouette: Reply From: SteveSmith

Add the .import folder to .gitignore. Generally, anything that starts with a “.” should not be committed.

correct +1, but still an issue:lightmap data files lies ouside of the .import folder.

FelicePollano | 2023-01-15 09:50