gitignore icon indicating copy to clipboard operation
gitignore copied to clipboard

Add .godot/ folder to Godot.gitignore for Godot 4

Open aaronfranke opened this issue 3 years ago • 5 comments

Reasons for making this change:

Add .godot/ folder to the Godot gitignore because in Godot 4.0 all generated files that should be gitignored will go in .godot/. This PR also updates the comments, let me know what you think.

Ignoring .godot/ is harmless in Godot 3.x, and ignoring the rest will be harmless in Godot 4.x, so we can include both.

Links to documentation supporting these rule changes:

https://github.com/godotengine/godot/pull/38607 and https://github.com/godotengine/godot/pull/38704

  • Link to application or project’s homepage: https://godotengine.org/ and https://github.com/godotengine/godot

aaronfranke avatar Oct 31 '20 21:10 aaronfranke

Bump :slightly_smiling_face:

This is still relevant to merge today. Judging how Godot 4.0 adoption will likely start rising as soon as the first alpha is released, it makes sense to merge this now.

Godot 3.x will remain used for a long time, so .import/ should be kept in for a few more years at least.

Calinou avatar Jun 18 '21 08:06 Calinou

Also shader_cache needs to be excluded or moved into .godot

qarmin avatar Aug 01 '21 14:08 qarmin

Also shader_cache needs to be excluded or moved into .godot

This is a bug that needs to be fixed on Godot's end. shader_cache is meant to be saved to Godot's cache directory, but it's not if you create the project by using touch project.godot then open the editor directly.

Calinou avatar Aug 01 '21 14:08 Calinou

Bump :slightly_smiling_face: cc @bdougie

This is still relevant as of 4.0.alpha14, and it won't change for 4.0 stable.

Calinou avatar Aug 24 '22 20:08 Calinou

I agree, if this is done sooner, it will prevent a lot of wasted resources uploaded and downloaded.

WraithWinterly avatar Aug 25 '22 02:08 WraithWinterly

My take: https://github.com/patwork/gitignore/blob/main/Godot.gitignore

patwork avatar Oct 26 '22 19:10 patwork