- Home /
Unity and git - issue with constantly modified prefabs and scenes
We have been using git with Unity fairly successfully, but there is one annoying behavior we can't seem to fix. Unity constantly modifies .scene and .prefab files even when no changes are made. Whenever Unity is opened or focused, it will modify several files even if we haven't made changes or even opened the scene. We can commit the changes and Unity will modify them again. We end up having to constantly discard the changes otherwise we get merge conflicts - again even when neither of the committers have made any actual changes.
We have meta files and force text enabled. We have a good .gitignore. And we don't attempt to merge these files normally in our git workflow.
Does anybody have any advice about this?
$$anonymous$$ore than 3 years later, I have the same issue which does not seen to be documented anywhere. Have you found a solution ?
This sounds like some line-endings kind of issue, are you guys developing on different platforms? Or maybe unity changes the permissions on those scene and prefab files? If it's that you can tell git to ignore permission changes. That's the first two things that come to my $$anonymous$$d
What kind of changes is it making? What do the diffs look like?
Your answer
![](https://koobas.hobune.stream/wayback/20220613100638im_/https://answers.unity.com/themes/thub/images/avi.jpg)