Search code examples
githubunity-game-enginegitignore.obj

Why cannot I load .obj file to my repository?


I started using github newly. I'm having trouble to load my .obj file to my repository. I found a gitignore file good to use with unity projects and I'm using it.

Temp/
Obj/
UnityGenerated/
Library/

*.svd
*.userprefs
*.csproj
*.pidb
*.sln
*.suo
*.user
*.unityproj
*.booproj

which one of this causes this? or is there any other reason?


Solution

  • Your own gitignore is not the culprit here. So something else is likely causing your .obj files to be ignored.

    The reason is that .obj files in your context are meshes, but they are also a file format for files which are the result of code compilation.

    Several Git clients I know of are trying to help you out by providing you with a global ignore file for Git. So the likely culprit is that such a file (probably located in your home directory) contains an entry causing it to ignore .obj file. Locate the ignore file and adapt it as necessary.