Git won't find Metafiles

675 Views Asked by At

This is a weird thing. I'm working with a team and we use Git to share the project. When I push my changes to the project, my Meta files never show as part of the submitted files. Sometimes, when I push my changes, the metafiles register on other users versions of the project.

But sometimes, especially when I create new scripts or prefabs, they get no metafiles.

I know that I have checked the "metafiles shown" option in the Editor menu. So, what am I missing? Why does this happen?

I'm using a MacBook with UnityPro. I manage my Git with SourceTree, but the files I'm looking for don't appear in regular Git through the terminal, either.

1

There are 1 best solutions below

1
On

You should edit your .gitignore file to not ignore meta files. .gitignore is a hidden file that can be anywhere inside your project structure but is normally found in the project's root folder.

It's not safe to ignore meta files unless they are folder meta files, so you should remove the *.meta that probably exists in your .gitignore file. If you want to ignore folder meta files, take a look at this question.