Project files that can safely be put in .gitignore

Godot Version

4.5.1

Question

if I keep my godot project repository on github, can I safely ignore the .godot folder and any files that end in .import and .uid ?

that is:

> .gitignore file:
>       .godot/
>       *.import
>       *.uid

No. Just the .godot folder, you need to include .import and .uid files.

1 Like

won’t a project without such files simply regenerate them?

Yes a project without your import or uid data will generate new import and uid data, not the same data.

Your textures and meshes will be re-imported with default settings, maybe incorrect as some automatic detection is done while using such resources that won’t be automatically detected again. Your UIDs will be incorrect for every resource applied to a property and if any included in your scripts, breaking nearly everything in your project.

3 Likes

AIGHG! That sounds bad!

Thanks, that’s the information I needed.