Prefab links keep getting dumped on Git pull

There really isn’t any fix because git works perfectly with Unity when configured properly.

Best practices involve saving your work and closing Unity before using git.

But if you understand how Unity does and does not flush changes to disk (or at least ALWAYS do a save-project), you can get away with leaving Unity open.

The only thing linking EVERYTHING together in Unity is the GUID assigned to a script or asset. Name is irrelevant. Only the GUID connects it. This GUID is in the meta file.

If you fail to commit metafiles to git, you will never be able to work in Unity. 100% of all meta files and all changes to all meta files must be committed along with the work that triggered it, no exceptions.

In your ProjectSettings, these two things MUST be correct for git:

7142306--854342--git_part_1.png 7142306--854345--git_part_2.png

5 Likes
Unity ruined my last 48 hours Part-2 Cruel Library
Collab won't let me add a third seat
very weird error
[Suggestion] - Upgrade Version Control Icons With Higher Resolution
Unity Version Control - switch workspace
A little story about using backup project folder
Unity Project problems, running same project on second PC
Gray Screen on Build
Unity doesn't have a backup solution, be careful you should have your own!
Code isn't working anymore
Same Project, Same Version, Two different computers = Errors
Unity crashed and now my project is having problems.
Issues with Terrain Asset files and general git issues.
Removing assembly definitions from project
Just lost 4 hours of grueling revamping because this crash-prone engine doesn't have Auto SAVE.
How to get rid of grey box??
My player is not moving at all
what is wrong with my PlasticSCM????
TextMesh Pro completely broken after compressing project as unity package — Unity 6
Transfer old 2D project from laptop to new PC (without USB stick)
Can't Make Character Move Up Smoothly While Following Path
Moving from Unity 2020.3.3f1 to 2021.3.11f1 Android build problems.
Unity is not opening my project
Unity duplicates assets back to root folder again after moving them
Collab bug
Cannot open Android project and cannot switch other projects to Android Build.
The name 'Mouse' does not exist in the current context
My game lit itself, can't figure out what happened.
I can't find the collab button
Git command prompt opens frantically in Editor
Unitty exe to files
Unity highly unstable/unusable on macOS
Project transfer
Unity projects bigger on external SSD
Project behaving strangely after having pulled from github
Splitting up a terrain object into different regions
How to deactive unused scripts without having to delete them?
Place an array of non-tile, square 2D sprites in a flush grid to set up game
How to fix a scene that was migrated from Mac to PC?
Failure while building - have built project dozens of times and haven't changed settings
PC soft locked, now my build has reverted to an earlier state.
AddForce() suddenly stopped working
i don't have the collab button.
Project broken after moving it to a new pc
Can't open scene after downgrading unity version
How to resolve The type or namespace name 'bool3x3' could not be found error
Project crashing on startup
Work on one project across multiple systems?
How to share source code
Build broke my scene? HELP APPRECIATED
Unity Android App back to the Projekt
how to use cloud.unity
Is it possible to use these files?
My unity game in editor is deleted, but the files are located in there
Connect to the server (Plastic SCM) page keeps coming out
Need Objects to destroy
How to add my project to github ? Can't find Version Control > Visible Meta Files
Working between both of my PCs.
Pls help me pink terrain is driving me crazy
Releasing my first game! Proper release workflow?
AppController.mm not found
Importing an existing unity project into github, how do I do it?
How To Properly Backup Unity Engine Project(Not Using Git)?
2019.4.28 crashes on Mac OS Big Sur on Start-up (Stack-trace included) - InitializeAssetDatabaseV2?
Track Changes stopped working on my Unity project in Visual Studio 2022
Working with several people on one project
Compile errors, but no errors reported, nor in editor
Why is there no download button?
Issue with my ProBuilder Mesh
new to JSON - one line in JSON = one object?
Sprite Atlas, Stack over flow
Multiple precompiled assemblies?
Came back to project after 3 weeks break, have 280 HDRP errors
Upgrading an old project from Unity 5.x to Unity 202x ?
Blue plus with my prefab icon
Uninstalling an old version of unity removed projects
Prefab changes not loading from Git Pull
Corrupted File Removed From Collab History: Lesson Learned
Corrupted / Missing Unity Files on Project Update and Creation
Error - These items are exclusively checkd out by: MYSELF 2
Self destruction
Phantom Error
Light settings bug in HDRP
On Editor update: Build settings -> Texture compression gets reseted on the first import
Game Window Gone Black on Play
Need help with abandoned Asset. No support. Need help Building DLL from Source.
Scene broken after PC Shut down
Need advice on setting up a new git
[BUG] Plastic SCM Deleting Addressables & Removing Files.
Spinner Physics Issue
UNITY JUST WRECKED MY PROJECT?!?!?!
How to delete historical uploads in a collab project
My project is hosed
hey i cant seem to transfer my unity file
New computer transfer issues
back to older version and then got errors
Unity not saving scenes or project. Lost everything twice.
The type or namespace name could not be found
Which version control for small Unity projects?
Help with unity.
New Folders are private.
Lost keystore. Unable to upload app with new keystore. Help Needed !!
Plastic Cloud Not Loading?
List obsolete APIs without updating?
huge project size because of library folder
How do you have multiple people working on the same game?
When opening a script from the editor in visual studio should I recover or not the file ?
Project Isn't Working 100% After Deleting Library Folder
Unity Closing When I Open A Project
"The script is an editor script" error when script is not an editor script
Help corrupt Terrain from Git: "Unknown error occurred while loading 'Assets/Terrain/Terrain_0_5.."
Would there be any problems repeatedly changing a project from Windows to Mac and vice versa?
Plastic scm offline?
How can I save and load progress bar?
Best way to store fixed game configuration data
PlasticSCM group work not showing
Plastic SCM Error "the remote host closed the socket."
Where will Scripting Define Symbols be saved?
In Collaborate, can we diff check files?
Download unity 4.6.5f1
Manually upgrade to C# 8
How can use SourceTree as local
Cannot Use Same Unity Project Between Desktop & Laptop
Editor not opening project! I cannot lose this project!
Renaming Scripts in 2023.1.6f1
importing unity made asset messed up rigidbodies.
Problems with Unity Builds on Mac and Google Drive / Dropbox
My Scripting Define Symbols are gone, how to regenerate them?
Build fails when project is copied to a different directory or computer and compiled
Unity Cinemachine Stopped Working; Doesn't look at the Look At Target
Unable to restore to last job I saved in cloud scm
Unable to open/view remote project from a different organisation in Unity Hub
Prefab lost all assignments
Unity Editor crashes when loading scene
PSB issue: How to export Sprites from Unity (and update Sprite-References) ?
Gradle build failed
Collaborate service giving error.
999+ errors, all of them are my scripts that got messed up.
How to preserve id in dll of package imported from git?
Could not find a part of the path
Is there simple trick to revert temporary changes
Lost my work
Deleted a unity version control repository and can't change a unity project to the new repository
Scene Management for platformer/metroidvania style game
How to clean up project files to reduce size before backup?
Which Android build folders can be omitted from a Project Backup?
Hdd Died is it possible to salvage anything from a apk build file?
Some gameObject lost!
Need help fixing build issues after update from 2021->2022
Opening remote project with plastic scm opens an empty project
Script compiles but the MonoBehaviour class isn't detected until reimported
i accedently deleted the gamemanager script
Collaboration not working
Should the fields of a 2D RPG be divided into scenes?
Hundreds of "New Game Object" in scene...
Lost my project due to collab "restore"
How can I retrieve a scene I was working on if it is not among the assets?
I'm in shaded mode, but it only shows me black and white spots
How do I update used assets in a large project?
Is it possible for project file corruptions to propagate through revisions without detection?
Error importing texture after upgrading to Unity 2023.1.2f1
unity collab delete my project
Unity CS2012: Cannot open 'Assembly-CSharp.dll' for writing
Game doesn't run
Unity destroyed the content of one of my project's folder ?
Can't open project on 2 PC's at the same time on network drive?
Recovering Lost Unity Projects Using Unity Dashboard?
Unity Engine Treats warnnings as Errors
UI disortion after project update
Unity is now at 70 minutes to load, about 25% of the way done
What folders should I backup
Is it right to delete all "Unity" folders after testing an asset store asset to restore to default?
Cant figure out how to collab on a Unity project. (please help)
Unity Crashing on opening a specific scene .
Unity gets stuck while building 64-bit version for the Play Store
the associated script can not be loaded
Unity.Plastic SCM.Editor.Plastic Plugin error
i want to save my project from build
How to save everything? I can't reliably save things.
Best solution for collaborating with multiple team members
Painless conversion from MonoBehaviour to ScriptableObject?
I am trying to open a remote project using PlasticSCM, but I get a error
Unity 2019.4.29f1 has blank collab history window
The referenced script (Unknown) on this Behaviour is missing!
How to retreive a deleted animation from an object?
How to delete Unity Plastic SCM cloud repositories?
How to duplicate 2D projects
I want to continue my work on my game on my iMac
Can't upload to Google Play due to non compliant SDK com.unity3d.ads:unity-ads
How can I work on a project with other people?
WebGL build size optimization
About projects backup, team workflow and github
Please tell me there is an easy/automatic way to revert my WHOLE project back to SRP from URP?
My PSD importer stopped working?
Unity foot folder will not copy/paste for a backup
Backup broke my game- Anyone see a fix?
Need help (Beginner)
Build game screne goes black
Missing types referenced from component UniversalRenderPipelineGlobalSettings on game object UniversalRenderPipelineGlobalSettings
BuildAssetBundleExplicitAssetNames error: Moving file failed
Upgraded project from 2020 Unity to 2021 Unity and now nothing works.
moving from plastic scm to version control
Unity Stuck On ProjectBrowser.Repaint After Opening Without Internet Connection Using PlasticSCM
Can't commit Unity because of large file
What happens with serialization when unity restarts?
Unity + Plastic + Odd Situation help
2 Compile Errors appeared that I cant understand how to solve appeared randomly
If I share a Unity project on Github, will it work on a new Unity installation without prior setup?
when I load specific scene I get editor crash
Updated editor, now project is all messed up
Build Failure org.xml.sax.SAXParseException
What version of Unity should I be using? What version of Android? I need to remove Unity splash screen
Scripts missing after refactoring name in many locations -- how to fix?
Error with Collab
Creating new Namespace within C#, not sure why
Is there any way to build only the modified parts each time, as a separate SO library for updates?
Package Cache error
Error message when new project is started. Clews?
Minigame 'spawn'
Project Artifact Has No .META File
Scripting define symbols empty
Issues with Unity Version Control
Collaboration error
How to keep same HTML and CSS file between different builds
Creating a grid system in a 3D world
Can I open a previously saved version
What is Recovery GameObject
PasticSCM randomly injecting code into my project and other errors during Build - 2022.3.1
Blitter is already initilaized exception after installing HDRP on older project, upgraded to 2022.3
Unity Version Control don't work
Latest Updates Made Game Unplayable
I need a hassle free "time machine" style backup for my ongoing developing projects
Unity and Git/GitHub not playing nice
Slow Loading Time - Scene Loading Async
Unity Error CS0246 NuGet Package MQTT not found, despite installed with no Visual Studio Errors
How do I go back to past edits without collab feature?
redownload from play.unity.com
My progress on new project is gone, is it my fault?
Error Build
On - line editor
Prefabs randomly change on their own
Game texts: How do you manage yours?
6.2 Beta fails to roll back test framework version
Move Project to M2 Mac, how?
Collaborate sync problems - "Recovery gameobject" [SOLVED]
Having projects on cloud and accessing them using different computers?
Transfer scene from one project to another
Is there any way to create a script from an editor window?
Version Control Error
Bird flying backwards in Angry Birds Like Game Tutorial (Terrible Tweeters YouTube Tutorial)
Exclude scripts from build
What's wrong with UI Toolkit?
Unknow error occurred while loading scene
Partnership working?
Error message in version control
Cracking lines in the tilemaps?
Should I continue work on a project in 2019.3.9f1, or should I try to update
Scene crashing after importing a package
Why do all my scripts keep detaching when I copy my game files?
Scene's Path Lost
Is there a way to recover permanently deleted game files?
Seems i should've exported all ProBuilder meshes, all except 1 mesh are lost in the 1st scene
Screen safe area issues in Unity 2018 LTS
Project script unable to function overnight
Editor crashes loading scene
GameObject script references broken across project
Git corrupted my Unity project I think. HELP!
Rigidbody physics not working
[Tutorial] Setup Git in a Unity project
Please put the branch name in the delete branch box
Version Control takes way too long to find stuff to check in
Where do I start with version control?
Unity SwitchOnInteger compile error
Unity editor issue in animator layer
File cant be read
URP pink textures Only in editor, different results on different PC
Unity Version Control - "The file unitygui.conf contains errors"
Black screen in VR headset when running app
How to restore a scene to a former save?
How to Recreate this Electromagnetic Effect?
Visual Studio or Visual Studio Code
Game compilation to APK and .aab, never finishes
Unity playmode no longer works in Quest 3 headset
Can't Open Project Via Unity Hub
What is the best way to upgrade a project from Unity 2017.4.40 up to Unity 6?