为什么我无法将.obj文件加载到我的存储库? [英] Why cannot I load .obj file to my repository?

查看:286
本文介绍了为什么我无法将.obj文件加载到我的存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用github。我无法将我的.obj文件加载到我的存储库。我发现一个gitignore文件很好用于团结项目,我正在使用它。

 临时/ 
对象/
UnityGenerated /
图书馆/

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

这是什么原因造成的?或者是否有其他原因?

解决方案

你自己的gitignore并不是罪魁祸首。所以别的东西可能会导致你的.obj文件被忽略。



原因在于您的上下文中的.obj文件是网格,但它们也是文件的文件格式,这是代码编译的结果。

我知道的几个Git客户端都试图通过向您提供Git的全局忽略文件来帮助您。所以可能的罪魁祸首是这样的文件(可能位于您的主目录中)包含一个条目,导致它忽略.obj文件。找到忽略文件并根据需要进行调整。

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?

解决方案

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.

这篇关于为什么我无法将.obj文件加载到我的存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆