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

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

问题描述

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

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.

这是我的 git ignore.

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 用于源代码 控制.源"是指小文本文件(ASCII 文件),是计算机语言.

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

您根本不会将 git 用于电影制作、游戏制作、音乐工作室、电视业务等.

游戏行业通常运行在颠覆之上.

The game industry generally runs on subversion.

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

(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) 如果出于某种原因,您尝试在 Unity 项目中使用 git.仅供参考,通常的建议,

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

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

万岁!

你经常看到关于如何在 Unity 中使用 git"的冗长讨论,这很奇怪,因为(你可以用 git 做的最好的)就在那里,礼貌 git git.

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.

重复一遍,请注意将 svn 与 Unity 结合使用非常容易.svn 是为媒体、电影、游戏等项目制作的.Git 真正适用于(即计算机代码文件).Unity 项目有几百字节的计算机代码 ASCII 文件,并且经常数百 GB 的音乐、视频、纹理、建模等资产.您无缘无故地使用 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.

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

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