# Gitignore doesn't have rule for .import files

**URL:** <https://community.revolutionarygamesstudio.com/t/gitignore-doesnt-have-rule-for-import-files/7694>\
**Category:** Development Help\
**Created:** [August 30, 2024, 1:46pm UTC](https://community.revolutionarygamesstudio.com/t/gitignore-doesnt-have-rule-for-import-files/7694 "2024-08-30T13:46:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luka](https://thrivecommunity-cdn.b-cdn.net/letter_avatar_proxy/v4/letter/l/a587f6/32.png) [@Luka](https://community.revolutionarygamesstudio.com/u/Luka)\
**Post date:** [August 30, 2024, 1:46pm UTC](https://community.revolutionarygamesstudio.com/t/gitignore-doesnt-have-rule-for-import-files/7694/1 "2024-08-30T13:46:37Z")

</div>

I’ve rrun into an issue with Godot making an insane amount of .import files, is it OK to update the .gitignore file to ignore .import files?

---

<div class="post-metadata">

**Author:** ![hhyyrylainen](https://thrivecommunity-cdn.b-cdn.net/user_avatar/community.revolutionarygamesstudio.com/hhyyrylainen/32/32_2.png) [@hhyyrylainen](https://community.revolutionarygamesstudio.com/u/hhyyrylainen)\
**Post date:** [August 30, 2024, 7:00pm UTC](https://community.revolutionarygamesstudio.com/t/gitignore-doesnt-have-rule-for-import-files/7694/2 "2024-08-30T19:00:17Z")

</div>

`.import` files are actually important because they contain the settings for importing the asset files. Many type of asset files in the game don’t use their default import settings, meaning that it is critical that their related `.import` files are checked into git.

So the actual problem is that Godot is importing assets from an unintended folder (which can be fixed with a `.gdignore` file). Or you just added a ton of new assets that were imported and then got the .import files generated related to them.

---

<div class="post-metadata">

**Author:** ![Luka](https://thrivecommunity-cdn.b-cdn.net/letter_avatar_proxy/v4/letter/l/a587f6/32.png) [@Luka](https://community.revolutionarygamesstudio.com/u/Luka)\
**Post date:** [August 31, 2024, 6:55am UTC](https://community.revolutionarygamesstudio.com/t/gitignore-doesnt-have-rule-for-import-files/7694/3 "2024-08-31T06:55:22Z")

</div>

I didn’t change anything. I opened up the project in Godot, wrote some code, did `git status`, and it made a lot of new import files for(I think) every file in the assets folder

---

<div class="post-metadata">

**Author:** ![hhyyrylainen](https://thrivecommunity-cdn.b-cdn.net/user_avatar/community.revolutionarygamesstudio.com/hhyyrylainen/32/32_2.png) [@hhyyrylainen](https://community.revolutionarygamesstudio.com/u/hhyyrylainen)\
**Post date:** [August 31, 2024, 7:59am UTC](https://community.revolutionarygamesstudio.com/t/gitignore-doesnt-have-rule-for-import-files/7694/4 "2024-08-31T07:59:05Z")

</div>

If you are on Windows, the more likely case is that CRLF changes have bitten you and that’s what causes an absolute ton of changes. There’s a few potential fixes like turning on auto CRLF and manually resetting the few changes that still stubbornly want to get done. Another potential issue is Godot Editor messing with the import files, but this luckily should only happen once. So you can let Godot import all assets once, close godot, then Git reset _all_ changes. After that re-opening Godot should only mess at most with a few files.

Developing on Windows is just a massive pain in general, which is why I don’t do it.

---

<div class="post-metadata">

**Author:** ![Luka](https://thrivecommunity-cdn.b-cdn.net/letter_avatar_proxy/v4/letter/l/a587f6/32.png) [@Luka](https://community.revolutionarygamesstudio.com/u/Luka)\
**Post date:** [August 31, 2024, 9:05am UTC](https://community.revolutionarygamesstudio.com/t/gitignore-doesnt-have-rule-for-import-files/7694/5 "2024-08-31T09:05:01Z")

</div>

Oh, I’m on Windows, didn’t know that it’s such a pain to develop on here. I’m going to see if this happens on my Linux dual-boot too.
