Skip to content

gitignore: Ignore *.tmp #929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2025
Merged

gitignore: Ignore *.tmp #929

merged 1 commit into from
Jul 8, 2025

Conversation

wjt
Copy link
Member

@wjt wjt commented Jul 8, 2025

This is suggested by a comment on
https://docs.godotengine.org/en/4.4/tutorials/best_practices/version_control_systems.html and it matches what I have seen in various pull requests from Windows users: if you edit and save a scene in the editor while the game is running and using that scene, the changed version is saved to a file ending .tmp alongside the original file, because on Windows you cannot modify a file that is open in another process.

This is suggested by a comment on
https://docs.godotengine.org/en/4.4/tutorials/best_practices/version_control_systems.html
and it matches what I have seen in various pull requests from Windows
users: if you edit and save a scene in the editor while the game is
running and using that scene, the changed version is saved to a file
ending `.tmp` alongside the original file, because on Windows you cannot
modify a file that is open in another process.
@wjt wjt requested a review from a team as a code owner July 8, 2025 11:28
Copy link
Collaborator

@manuq manuq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh good point. It is interesting that the .gitignore created by Godot Editor doesn't have this rule.

@manuq manuq merged commit 61cfdd7 into main Jul 8, 2025
8 checks passed
@manuq manuq deleted the gitignore-tmp-files branch July 8, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants