Using Git: project.godot modification date changes when importing project

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

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

# Mono-specific ignores

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

Git information

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

rolfpancake | 2019-02-14 07:23

:bust_in_silhouette: Reply From: Calinou

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.

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.

rolfpancake | 2019-02-15 23:30