Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems with sharing Unity Projects using Github From Windows to macOS

So me and my team started to develop a game using Unity3D. We wanted to share the project using Github so we can be up-to-date with each other's modifications.

I successfully pushed my Unity project (the whole project folder) to Github with a .gitignore (attached below) and also the meta files. I also allowed Force Text and Visible Meta Files.

I am using Windows 10 and my teammate is using macOS. The problem starts when my teammate tries pulling from the repository, he gets the files but when he opens the project, some of the objects in the Hierarchy Tab are invisible and all that he sees in the scene are some cubes and spheres and nothing else.

I am using FullStackForger's .gitignore (Thanks btw). Link here https://gist.github.com/FullStackForger/20bbf62861394b1a3de0

like image 230
Jsbbvk Avatar asked Jul 08 '26 16:07

Jsbbvk


1 Answers

Make sure the EOL (end of line) style of the file is correct, and that each developper has configured:

git config --global core.autocrlf false

That way, you are sure Git will not modifiy automatically on checkout those files.

like image 132
VonC Avatar answered Jul 10 '26 09:07

VonC