源树Unity项目Ghost文件 [英] Source Tree Unity project Ghost files

查看:130
本文介绍了源树Unity项目Ghost文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近改变了我的Gitignore这很好,直到我拉下另一台机器,发现一些项目不在那里。所以我已经转回到旧的git忽略,但现在只要我打开项目,并转到源代码树,这些文件和文件夹需要每次推动。





我不会编辑这些文件和每次提交。
然后,即使我在设置中选择了隐藏的元文件,但每当我做出任何更改时,它都会使我承担一部分元文件。



解决这两个问题。



这是我的git ignore。

  #===============#
#Unity生成#
#===============#
[tt] emp /
[Oo] bj /
[Bb] uild
[Ll]库/
sysinfo.txt
* .stackdump

#=====================================#
#Visual Studio / MonoDevelop生成#
#=====================================#
[Ee] xported [Oo] bj /
.vs /
/*.userprefs
/*.csproj
/*.pidb
/*.suo
/*.sln*
/*.user
/*.unityproj
/*.booproj

#========== ==#
#操作系统生成#
#============#
.DS_Store *
._ *
.Spotlight- V100
。擦掉
图标?
ehthumbs.db
[tt] humbs.db


解决方案

这是一个重复数十亿次的问题,但是,

<1> git用于 控制。 源意味着小文本文件(ASCII文件),即计算机语言。



你根本不用git来做电影制作,游戏制作,在音乐工作室,电视业务等等

游戏行业一般运行于颠覆。


(Unity项目有四个或五个微小的源文件,然后是千兆字节的视频,动画,纹理,模型等等。它完全不适合git。)

2)如果出于某种原因,您尝试将Unity项目与git一起使用。仅供参考通常的建议,

只需使用实际的最新官方计划FROM GIT THEMSELVES:



https://github.com/github/gitignore/blob/master/Unity .gitignore

Hooray!



您经常看到关于如何使用git与Unity,这是奇怪的(你可以用git做的最好的)就在那里,礼貌git git 非常容易 在Unity中使用svn。 svn是为媒体,电影,游戏等项目制作的。 Git是真正用于(即计算机代码文件)。 Unity项目有几百个字节的计算机代码ASCII文件,并且经常有100多亿字节的音乐,视频,纹理,建模等资产。你无缘无故地使用git。


Recently changed my Gitignore which was fine until i pulled down on another machine to find some of the project was not there. So i have switched back to my old git ignore but now as soon as i open the project and go to source tree these files and folders need pushing every time.

I do not edit these files and every commit they come up. Then even though i have hidden meta files selected in the settings whenever i make any change, it makes me commit a load of meta files.

Any ideas to fix both these issues.

Here is my git ignore.

# =============== #
# Unity generated #
# =============== #
[Tt]emp/
[Oo]bj/
[Bb]uild
[Ll]ibrary/
sysinfo.txt
*.stackdump

# ===================================== #
# Visual Studio / MonoDevelop generated #
# ===================================== #
[Ee]xported[Oo]bj/
.vs/
/*.userprefs
/*.csproj
/*.pidb
/*.suo
/*.sln*
/*.user
/*.unityproj
/*.booproj

# ============ #
# OS generated #
# ============ #
.DS_Store*
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
[Tt]humbs.db

解决方案

This is a zillion-times duplicate question but,

1) git is for source control. "source" means small text files (ASCII files), being computer languages.

You don't use git, at all, for things like filmmaking, game production, in a music studio, the TV business, etc.

The game industry generally runs on subversion.

(Unity projects have four or five tiny "source" files, and then gigabytes of video, animation, textures, models etc. It's just totally unsuitable for git.)

2) If for some reason you are trying to use git with a Unity project. FYI the usual suggestion,

simply use the actual up-to-the-minute official plan FROM GIT THEMSELVES:

https://github.com/github/gitignore/blob/master/Unity.gitignore

Hooray!

You often see long-winded discussions about "how to use git with Unity", this is bizarre as (the best you can do with git) is right there, courtesy git git.

Just to repeat, do note that it is incredibly easier to use svn with Unity. svn is made for media, film, game etc projects. Git is really for source (i.e. computer code files). Unity projects have a few hundred bytes computer code ASCII files, and very often 100s of gigabytes of music, video, texture, modelling etc assets. You're knocking yourself out using git for no reason.

这篇关于源树Unity项目Ghost文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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