This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Problem description:

I wanted to start using git while working on a project and came across one problem. When cloning the repository on another computer and then open up the project in godot, the import process starts and changes the modification date of the project.godot file. Can this be prevented?

This is my .gitignore file (which works fine):

# Godot-specific ignores
*.import
.import/
export.cfg
export_presets.cfg

# Mono-specific ignores
.mono/

This is the message the git gui throws when doing a Rescan:

Git information

in Engine by (1,036 points)

A few moments later the default_env.tres and my first loaded scene are also changed by their modification date.

1 Answer

+1 vote
Best answer

As far as I know, this cannot be prevented, but this should have no influence on Git internals (as it doesn't care about modification dates, only actual changes).

PS: You should remove *.import from your .gitignore, as this excludes important metadata from version control (such as whether a texture should be imported with filtering enabled). The .ignore/ line should be kept though, as it ignores the directory that contains imported resources.

by (12,908 points)
selected by

Thank you for the fast response, Calinou!
After clicking on Stage Changed I noticed that the files disappeared from my list. So it behaved as you described.

I'm getting warnings because of the line endings and have to click on Continue or Unlock index. Any impact on Godot when doing either of these?

Thanks for the tip about those *.import files. I was irritated that my .obj files had extra import files. This makes sense after all.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.