Missing Materials With Source Control

I uploaded my project via git so that I can pull it down on my laptop and work on it while on vacation. I have create a .gitignore file for the Library and Standard Assets because it takes up a lot space and I don’t change it.

When I pull it on the laptop, it recreates the Standard Assets and Library folders, re-imports everything, but all of my GameObjects no longer have their materials assigned. All of them are a swimming shade of pink and it says Missing Material in the Inspector. I am using a different path on the hard-drive, but I think that would hardly matter.

What do I need to commit to the repository or do elsewhere to get those Materials to persist between computers?

There are meta files associated with all your assets inside of a Unity Project, which is why any kind of external version control / source control does not save all of those settings, because they’re not being linked correctly. If available to you at all, the included Asset Server within Unity ( read source control ) is extremely easy to setup, and has worked perfectly fine for me ( with a small team ).

If you’re absolutely set on using git, take a look at Unity’s documentation below to see if it will clear up your problems:

http://unity3d.com/support/documentation/Manual/ExternalVersionControlSystemSupport