I am working on a Unity3D project in Unity17.2.1
I am using git with Git-LFS and SourceTree on Windows 10.
My problem now:
Everything works fine in my local clone.
But , if I clone a project in a new folder (for testing), I get a lot of errors. It loads most trackers for LFS files just fine, but for some of them I get:
Error loading object: Assets / VRITM / _Prefabs / SceneGraph / NetworkManager / DebugHUD / ConfigurationPanel / InputField.prefab (3a0c39040b397ab7120d427e019ad767b2bd6b91386856f9730507be1b59ad3c)
I can somehow restore the "copied" (recently cloned) project locally, since I exported the entire Assets folder as a single package from my working local clone.
But after that, git still claims to be βupdatedβ, so I cannot commit / click again.
How can I recover these monitored LFS files in a remote repository (github)?
Since everything works fine for me on my local clone, I think that there must be some way to βforceβ Git-LFS to download all the files, as I have them.
The second problem (this is resolved now. See comments.)
In addition, I have two scenarios that I renamed before the merge:
On the host was
DebugHUDManager.cs ConfigurationHUDManager.cs
But I renamed classes and files to
DebugHUDManager.cs ConfigurationHUDManager.cs
therefore, in my local (working) clone, I have a later point, when I clone again, I get the old files (..HUD ..), and therefore GameObject has only missing scripts. I can solve this by renaming only the files again. But this is not trackable in git. He continues to say "updated."
These are my .gitattributes :
# Unity *.cginc text *.cs diff=csharp text *.shader text
Additional notes
Problems began after some huge merger.
I did not have Smart-Minging of Unity with UnityYamlMerge.exe . (I added it now.)
All missing files are of the types .prefab and .unity . And they all seem to be part of my last commits before the merge. But other .prefab files load fine.
Also, the size does not matter, because most of them have 10Kb, while some .prefab files that are downloaded have, for example, 1.9Mb.
Asset Serialization - Mode = Strength Text
I just made another test commit with just the new .prefab file. This works great. The only thing that doesn't work are those .prefab files that were added / changed by merge.
How can I save this project? oo
UPDATE:
In the meantime, I created a new repository and copied the files (of course, excluding the .git folder) from my working local clone. But, of course, the story in the new repository has disappeared. But at least we can continue to work together.